@@ -82,7 +82,7 @@ def self.change_label(noteable, project, author, added_labels, removed_labels)
82
82
end
83
83
84
84
body << ' ' << 'label' . pluralize ( labels_count )
85
- body = " #{ body . capitalize } "
85
+ body = body . capitalize
86
86
87
87
create_note ( noteable : noteable , project : project , author : author , note : body )
88
88
end
@@ -125,7 +125,7 @@ def self.change_milestone(noteable, project, author, milestone)
125
125
# Returns the created Note object
126
126
def self . change_status ( noteable , project , author , status , source )
127
127
body = "Status changed to #{ status } "
128
- body += " by #{ source . gfm_reference ( project ) } " if source
128
+ body << " by #{ source . gfm_reference ( project ) } " if source
129
129
130
130
create_note ( noteable : noteable , project : project , author : author , note : body )
131
131
end
@@ -139,7 +139,7 @@ def self.merge_when_build_succeeds(noteable, project, author, last_commit)
139
139
140
140
# Called when 'merge when build succeeds' is canceled
141
141
def self . cancel_merge_when_build_succeeds ( noteable , project , author )
142
- body = " Canceled the automatic merge"
142
+ body = ' Canceled the automatic merge'
143
143
144
144
create_note ( noteable : noteable , project : project , author : author , note : body )
145
145
end
@@ -236,6 +236,7 @@ def self.change_branch_presence(noteable, project, author, branch_type, branch,
236
236
else
237
237
'deleted'
238
238
end
239
+
239
240
body = "#{ verb } #{ branch_type . to_s } branch `#{ branch } `" . capitalize
240
241
create_note ( noteable : noteable , project : project , author : author , note : body )
241
242
end
0 commit comments