Proper cross-project references when MR is closed by issue

This commit is contained in:
Douwe Maan
2015-11-30 21:36:35 +01:00
parent f9017a2b03
commit 4a292aa604
+1 -1
View File
@@ -125,7 +125,7 @@ class SystemNoteService
# Returns the created Note object
def self.change_status(noteable, project, author, status, source)
body = "Status changed to #{status}"
body += " by #{source.gfm_reference}" if source
body += " by #{source.gfm_reference(project)}" if source
create_note(noteable: noteable, project: project, author: author, note: body)
end