summaryrefslogtreecommitdiff
path: root/app/services/system_note_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r--app/services/system_note_service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb
index 751815c5b18..b65ac47bce3 100644
--- a/app/services/system_note_service.rb
+++ b/app/services/system_note_service.rb
@@ -212,7 +212,10 @@ class SystemNoteService
#
# "Started branch `201-issue-branch-button`"
def self.new_issue_branch(issue, project, author, branch)
- body = "Started branch `#{branch}`"
+ h = Gitlab::Application.routes.url_helpers
+ link = "#{Gitlab.config.gitlab.url}#{h.namespace_project_compare_path(project.namespace, project, from: project.default_branch, to: branch)}"
+
+ body = "Started branch [#{branch}](#{link})"
create_note(noteable: issue, project: project, author: author, note: body)
end