Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-10-16 10:51:25 +0300
committerStan Hu <stanhu@gmail.com>2015-10-16 10:51:25 +0300
commitf726df26c28666e640e566d50f363994e71cf681 (patch)
tree3b3d69a9033a74ac43d5d36aa7a462b6cb9e5791 /app/services
parent888c1a3fc53ff0318cd69d0e7f1edad25f306713 (diff)
Reorder system note verb to say "Restored source branch X" instead of "Source branch X restored"
Diffstat (limited to 'app/services')
-rw-r--r--app/services/system_note_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb
index c0a5c3aeb53..37f454cfc3f 100644
--- a/app/services/system_note_service.rb
+++ b/app/services/system_note_service.rb
@@ -179,7 +179,7 @@ class SystemNoteService
#
# Example Note text:
#
- # "Target branch `feature` deleted"
+ # "Restored target branch `feature`"
#
# Returns the created Note object
def self.change_branch_presence(noteable, project, author, branch_type, branch, presence)
@@ -189,7 +189,7 @@ class SystemNoteService
else
'deleted'
end
- body = "#{branch_type.to_s} branch `#{branch}` #{verb}".capitalize
+ body = "#{verb} #{branch_type.to_s} branch `#{branch}`".capitalize
create_note(noteable: noteable, project: project, author: author, note: body)
end