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
Kazuhiko Shiozaki
gitlab-ce
Commits
496b9c07
Commit
496b9c07
authored
Feb 26, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add commit message to JIRA's notification payload.
parent
baa5f7fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/models/project_services/jira_service.rb
app/models/project_services/jira_service.rb
+4
-2
No files found.
app/models/project_services/jira_service.rb
View file @
496b9c07
...
...
@@ -108,7 +108,8 @@ class JiraService < IssueTrackerService
},
entity:
{
name:
noteable_name
.
humanize
.
downcase
,
url:
entity_url
url:
entity_url
,
title:
noteable
.
title
}
}
...
...
@@ -196,10 +197,11 @@ class JiraService < IssueTrackerService
user_url
=
data
[
:user
][
:url
]
entity_name
=
data
[
:entity
][
:name
]
entity_url
=
data
[
:entity
][
:url
]
entity_title
=
data
[
:entity
][
:title
]
project_name
=
data
[
:project
][
:name
]
message
=
{
body:
"[
#{
user_name
}
|
#{
user_url
}
] mentioned this issue in [a
#{
entity_name
}
of
#{
project_name
}
|
#{
entity_url
}
]."
body:
%Q{[
#{
user_name
}
|
#{
user_url
}
] mentioned this issue in [a
#{
entity_name
}
of
#{
project_name
}
|
#{
entity_url
}
]:
\n
"
#{
entity_title
}
"}
}
unless
existing_comment?
(
issue_name
,
message
[
:body
])
...
...
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