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
Boxiang Sun
gitlab-ce
Commits
51eab413
Commit
51eab413
authored
Oct 18, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use merge request prefix symbol in event feed title
parent
1cf4aa02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+4
-0
changelogs/unreleased/gt-use-merge-request-prefix-in-event-feed-title.yml
...eased/gt-use-merge-request-prefix-in-event-feed-title.yml
+5
-0
No files found.
app/helpers/events_helper.rb
View file @
51eab413
...
...
@@ -90,6 +90,10 @@ module EventsHelper
elsif
event
.
milestone?
words
<<
"#
#{
event
.
target_iid
}
"
if
event
.
target_iid
words
<<
"in"
elsif
event
.
merge_request?
words
<<
"!
#{
event
.
target_iid
}
:"
if
event
.
target_iid
words
<<
event
.
target
.
title
if
event
.
target
.
respond_to?
(
:title
)
words
<<
"at"
elsif
event
.
target
words
<<
"#
#{
event
.
target_iid
}
:"
words
<<
event
.
target
.
title
if
event
.
target
.
respond_to?
(
:title
)
...
...
changelogs/unreleased/gt-use-merge-request-prefix-in-event-feed-title.yml
0 → 100644
View file @
51eab413
---
title
:
Use merge request prefix symbol in event fetitle
merge_request
:
22449
author
:
George Tsiolis
type
:
changed
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