Merge branch 'revert-6f85eb38' into 'master'
Revert "Merge branch 'issue_5854' into 'master'" This reverts merge request !2992 cc @rdavila See merge request !3013
This commit is contained in:
commit
333ad73e76
1 changed files with 2 additions and 4 deletions
|
@ -108,8 +108,7 @@ class JiraService < IssueTrackerService
|
|||
},
|
||||
entity: {
|
||||
name: noteable_name.humanize.downcase,
|
||||
url: entity_url,
|
||||
title: noteable.title
|
||||
url: entity_url
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -197,11 +196,10 @@ 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: %Q{[#{user_name}|#{user_url}] mentioned this issue in [a #{entity_name} of #{project_name}|#{entity_url}]:\n"#{entity_title}"}
|
||||
body: "[#{user_name}|#{user_url}] mentioned this issue in [a #{entity_name} of #{project_name}|#{entity_url}]."
|
||||
}
|
||||
|
||||
unless existing_comment?(issue_name, message[:body])
|
||||
|
|
Loading…
Reference in a new issue