Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
e831a3b8
Commit
e831a3b8
authored
Feb 19, 2016
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link in the note when started a new branch from an issue
parent
ad97bebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/services/system_note_service.rb
app/services/system_note_service.rb
+4
-1
No files found.
app/services/system_note_service.rb
View file @
e831a3b8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment