{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/comments/23933475","id":23933475,"diff_hunk":"@@ -0,0 +1,96 @@\n+package org.jenkinsci.plugins.buildtriggerbadge;\n+\n+import hudson.PluginWrapper;\n+import hudson.cli.BuildCommand.CLICause;\n+import hudson.model.Cause;\n+import hudson.model.Cause.RemoteCause;\n+import hudson.model.Cause.UpstreamCause;\n+import hudson.model.Cause.UserCause;\n+import hudson.model.Cause.UserIdCause;\n+import hudson.triggers.SCMTrigger.SCMTriggerCause;\n+import hudson.triggers.TimerTrigger.TimerTriggerCause;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import jenkins.model.Jenkins;\n+\n+import org.jenkinsci.plugins.buildtriggerbadge.provider.BuildTriggerBadgeProvider;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * Class responsible for finding the icon assocated with a build cause.","path":"src/main/java/org/jenkinsci/plugins/buildtriggerbadge/IconFinder.java","position":23,"original_position":23,"commit_id":"c097933f5f50ae29307853f8367da997ba5b063e","original_commit_id":"c097933f5f50ae29307853f8367da997ba5b063e","user":{"login":"mpapo","id":1479384,"avatar_url":"https://avatars.githubusercontent.com/u/1479384?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapo","html_url":"https://github.com/mpapo","followers_url":"https://api.github.com/users/mpapo/followers","following_url":"https://api.github.com/users/mpapo/following{/other_user}","gists_url":"https://api.github.com/users/mpapo/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapo/subscriptions","organizations_url":"https://api.github.com/users/mpapo/orgs","repos_url":"https://api.github.com/users/mpapo/repos","events_url":"https://api.github.com/users/mpapo/events{/privacy}","received_events_url":"https://api.github.com/users/mpapo/received_events","type":"User","site_admin":false},"body":"associated","created_at":"2015-02-02T15:56:51Z","updated_at":"2015-02-02T15:56:51Z","html_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/12#discussion_r23933475","pull_request_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/comments/23933475"},"html":{"href":"https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/12#discussion_r23933475"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12","id":28445617,"html_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/12","diff_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/12.diff","patch_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/12.patch","issue_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/12","number":12,"state":"open","locked":false,"title":"Extensible badges","user":{"login":"Batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/Batmat","html_url":"https://github.com/Batmat","followers_url":"https://api.github.com/users/Batmat/followers","following_url":"https://api.github.com/users/Batmat/following{/other_user}","gists_url":"https://api.github.com/users/Batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/Batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Batmat/subscriptions","organizations_url":"https://api.github.com/users/Batmat/orgs","repos_url":"https://api.github.com/users/Batmat/repos","events_url":"https://api.github.com/users/Batmat/events{/privacy}","received_events_url":"https://api.github.com/users/Batmat/received_events","type":"User","site_admin":false},"body":"This pull-request introduces two features, through extension points:\r\n* one extension point to add/override badges for causes\r\n* one extension point for deactivating badges for some causes","created_at":"2015-02-02T05:07:42Z","updated_at":"2015-02-02T15:56:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd40027419ef30bb5ae03c635da9d153279560a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/12/comments","statuses_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/statuses/c097933f5f50ae29307853f8367da997ba5b063e","head":{"label":"jenkinsci:extensible-badges","ref":"extensible-badges","sha":"c097933f5f50ae29307853f8367da997ba5b063e","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":5838669,"name":"buildtriggerbadge-plugin","full_name":"jenkinsci/buildtriggerbadge-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin","description":"Jenkins' plugin to display an icon representing the trigger cause of a build.","fork":true,"url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin","forks_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/releases{/id}","created_at":"2012-09-17T09:12:08Z","updated_at":"2015-02-02T04:48:39Z","pushed_at":"2015-02-02T06:06:06Z","git_url":"git://github.com/jenkinsci/buildtriggerbadge-plugin.git","ssh_url":"git@github.com:jenkinsci/buildtriggerbadge-plugin.git","clone_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin.git","svn_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin","size":415,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"2e16e737229d1e07826a21741507fb95aaef837a","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":5838669,"name":"buildtriggerbadge-plugin","full_name":"jenkinsci/buildtriggerbadge-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin","description":"Jenkins' plugin to display an icon representing the trigger cause of a build.","fork":true,"url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin","forks_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/releases{/id}","created_at":"2012-09-17T09:12:08Z","updated_at":"2015-02-02T04:48:39Z","pushed_at":"2015-02-02T06:06:06Z","git_url":"git://github.com/jenkinsci/buildtriggerbadge-plugin.git","ssh_url":"git@github.com:jenkinsci/buildtriggerbadge-plugin.git","clone_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin.git","svn_url":"https://github.com/jenkinsci/buildtriggerbadge-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin","size":415,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12"},"html":{"href":"https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/12"},"issue":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/12"},"comments":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/buildtriggerbadge-plugin/statuses/c097933f5f50ae29307853f8367da997ba5b063e"}}}}