Remove JIRA closed status icon
This commit is contained in:
parent
4615d09951
commit
7f973ccbc3
|
@ -250,21 +250,11 @@ class JiraService < IssueTrackerService
|
|||
end
|
||||
end
|
||||
|
||||
# Build remote link on JIRA properties
|
||||
# Icons here must be available on WEB so JIRA can read the URL
|
||||
# We are using a open word graphics icon which have LGPL license
|
||||
def build_remote_link_props(url:, title:, resolved: false)
|
||||
status = {
|
||||
resolved: resolved
|
||||
}
|
||||
|
||||
if resolved
|
||||
status[:icon] = {
|
||||
title: 'Closed',
|
||||
url16x16: 'http://www.openwebgraphics.com/resources/data/1768/16x16_apply.png'
|
||||
}
|
||||
end
|
||||
|
||||
{
|
||||
GlobalID: 'GitLab',
|
||||
object: {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Remove JIRA closed status icon
|
||||
merge_request:
|
||||
author:
|
|
@ -135,7 +135,7 @@ describe JiraService, models: true do
|
|||
url: "#{Gitlab.config.gitlab.url}/#{project.path_with_namespace}/commit/#{merge_request.diff_head_sha}",
|
||||
title: "GitLab: Solved by commit #{merge_request.diff_head_sha}.",
|
||||
icon: { title: "GitLab", url16x16: "https://gitlab.com/favicon.ico" },
|
||||
status: { resolved: true, icon: { url16x16: "http://www.openwebgraphics.com/resources/data/1768/16x16_apply.png", title: "Closed" } }
|
||||
status: { resolved: true }
|
||||
}
|
||||
)
|
||||
).once
|
||||
|
|
Loading…
Reference in New Issue