Remove JIRA closed status icon

This commit is contained in:
Felipe Artur 2017-02-02 17:16:21 -02:00
parent 4615d09951
commit 7f973ccbc3
3 changed files with 5 additions and 11 deletions

View File

@ -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: {

View File

@ -0,0 +1,4 @@
---
title: Remove JIRA closed status icon
merge_request:
author:

View File

@ -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