{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/comments/34195736","id":34195736,"diff_hunk":"@@ -52,10 +56,13 @@ protected void doRun() throws Exception {\n         }\n \n         // subtract all the live repositories\n-        for (AbstractProject<?,?> job : Hudson.getInstance().getAllItems(AbstractProject.class)) {\n-            GitHubPushTrigger trigger = job.getTrigger(GitHubPushTrigger.class);\n-            if (trigger!=null) {\n-                names.removeAll(GitHubRepositoryNameContributor.parseAssociatedNames(job));\n+        for (Job<?,?> job : getActiveInstance().getAllItems(Job.class)) {","path":"src/main/java/com/cloudbees/jenkins/Cleaner.java","position":43,"original_position":43,"commit_id":"eaa1de63bd7b8d9c6b4d37d8510e120bc2050ce2","original_commit_id":"eaa1de63bd7b8d9c6b4d37d8510e120bc2050ce2","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"Alternately, just use `getInstance`, and if null, skip this block.","created_at":"2015-07-08T20:40:28Z","updated_at":"2015-07-08T20:40:28Z","html_url":"https://github.com/jenkinsci/github-plugin/pull/59#discussion_r34195736","pull_request_url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/comments/34195736"},"html":{"href":"https://github.com/jenkinsci/github-plugin/pull/59#discussion_r34195736"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59","id":39179684,"html_url":"https://github.com/jenkinsci/github-plugin/pull/59","diff_url":"https://github.com/jenkinsci/github-plugin/pull/59.diff","patch_url":"https://github.com/jenkinsci/github-plugin/pull/59.patch","issue_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/59","number":59,"state":"open","locked":false,"title":"[JENKINS-27136] Workflow support for GitHub Push Triggers","user":{"login":"amuniz","id":1017585,"avatar_url":"https://avatars.githubusercontent.com/u/1017585?v=3","gravatar_id":"","url":"https://api.github.com/users/amuniz","html_url":"https://github.com/amuniz","followers_url":"https://api.github.com/users/amuniz/followers","following_url":"https://api.github.com/users/amuniz/following{/other_user}","gists_url":"https://api.github.com/users/amuniz/gists{/gist_id}","starred_url":"https://api.github.com/users/amuniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuniz/subscriptions","organizations_url":"https://api.github.com/users/amuniz/orgs","repos_url":"https://api.github.com/users/amuniz/repos","events_url":"https://api.github.com/users/amuniz/events{/privacy}","received_events_url":"https://api.github.com/users/amuniz/received_events","type":"User","site_admin":false},"body":"@reviewbybees\r\n\r\nhttps://issues.jenkins-ci.org/browse/JENKINS-27136","created_at":"2015-07-03T14:30:48Z","updated_at":"2015-07-08T20:40:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afaa51c222d0cbe65b0f82f1c7a7f55db3c9a8f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/59/comments","statuses_url":"https://api.github.com/repos/jenkinsci/github-plugin/statuses/eaa1de63bd7b8d9c6b4d37d8510e120bc2050ce2","head":{"label":"amuniz:gh-trigger-JENKINS-27136","ref":"gh-trigger-JENKINS-27136","sha":"eaa1de63bd7b8d9c6b4d37d8510e120bc2050ce2","user":{"login":"amuniz","id":1017585,"avatar_url":"https://avatars.githubusercontent.com/u/1017585?v=3","gravatar_id":"","url":"https://api.github.com/users/amuniz","html_url":"https://github.com/amuniz","followers_url":"https://api.github.com/users/amuniz/followers","following_url":"https://api.github.com/users/amuniz/following{/other_user}","gists_url":"https://api.github.com/users/amuniz/gists{/gist_id}","starred_url":"https://api.github.com/users/amuniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuniz/subscriptions","organizations_url":"https://api.github.com/users/amuniz/orgs","repos_url":"https://api.github.com/users/amuniz/repos","events_url":"https://api.github.com/users/amuniz/events{/privacy}","received_events_url":"https://api.github.com/users/amuniz/received_events","type":"User","site_admin":false},"repo":{"id":38361321,"name":"github-plugin","full_name":"amuniz/github-plugin","owner":{"login":"amuniz","id":1017585,"avatar_url":"https://avatars.githubusercontent.com/u/1017585?v=3","gravatar_id":"","url":"https://api.github.com/users/amuniz","html_url":"https://github.com/amuniz","followers_url":"https://api.github.com/users/amuniz/followers","following_url":"https://api.github.com/users/amuniz/following{/other_user}","gists_url":"https://api.github.com/users/amuniz/gists{/gist_id}","starred_url":"https://api.github.com/users/amuniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuniz/subscriptions","organizations_url":"https://api.github.com/users/amuniz/orgs","repos_url":"https://api.github.com/users/amuniz/repos","events_url":"https://api.github.com/users/amuniz/events{/privacy}","received_events_url":"https://api.github.com/users/amuniz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amuniz/github-plugin","description":"Jenkins github plugin","fork":true,"url":"https://api.github.com/repos/amuniz/github-plugin","forks_url":"https://api.github.com/repos/amuniz/github-plugin/forks","keys_url":"https://api.github.com/repos/amuniz/github-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amuniz/github-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amuniz/github-plugin/teams","hooks_url":"https://api.github.com/repos/amuniz/github-plugin/hooks","issue_events_url":"https://api.github.com/repos/amuniz/github-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/amuniz/github-plugin/events","assignees_url":"https://api.github.com/repos/amuniz/github-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/amuniz/github-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/amuniz/github-plugin/tags","blobs_url":"https://api.github.com/repos/amuniz/github-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amuniz/github-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amuniz/github-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/amuniz/github-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amuniz/github-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/amuniz/github-plugin/languages","stargazers_url":"https://api.github.com/repos/amuniz/github-plugin/stargazers","contributors_url":"https://api.github.com/repos/amuniz/github-plugin/contributors","subscribers_url":"https://api.github.com/repos/amuniz/github-plugin/subscribers","subscription_url":"https://api.github.com/repos/amuniz/github-plugin/subscription","commits_url":"https://api.github.com/repos/amuniz/github-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/amuniz/github-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/amuniz/github-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/amuniz/github-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/amuniz/github-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/amuniz/github-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amuniz/github-plugin/merges","archive_url":"https://api.github.com/repos/amuniz/github-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amuniz/github-plugin/downloads","issues_url":"https://api.github.com/repos/amuniz/github-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/amuniz/github-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/amuniz/github-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/amuniz/github-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amuniz/github-plugin/labels{/name}","releases_url":"https://api.github.com/repos/amuniz/github-plugin/releases{/id}","created_at":"2015-07-01T09:10:47Z","updated_at":"2015-07-01T09:10:47Z","pushed_at":"2015-07-08T19:42:27Z","git_url":"git://github.com/amuniz/github-plugin.git","ssh_url":"git@github.com:amuniz/github-plugin.git","clone_url":"https://github.com/amuniz/github-plugin.git","svn_url":"https://github.com/amuniz/github-plugin","homepage":"http://jenkins-ci.org/","size":332,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"362b21d881ccd6aed819214372caffca957fbf9b","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":1163555,"name":"github-plugin","full_name":"jenkinsci/github-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/github-plugin","description":"Jenkins github plugin","fork":false,"url":"https://api.github.com/repos/jenkinsci/github-plugin","forks_url":"https://api.github.com/repos/jenkinsci/github-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/github-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/github-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/github-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/github-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/github-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/github-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/github-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/github-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/github-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/github-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/github-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/github-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/github-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/github-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/github-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/github-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/github-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/github-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/github-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/github-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/github-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/github-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/github-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/github-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/github-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/github-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/github-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/github-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/github-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/github-plugin/releases{/id}","created_at":"2010-12-13T05:35:14Z","updated_at":"2015-06-28T18:21:00Z","pushed_at":"2015-07-08T19:42:27Z","git_url":"git://github.com/jenkinsci/github-plugin.git","ssh_url":"git@github.com:jenkinsci/github-plugin.git","clone_url":"https://github.com/jenkinsci/github-plugin.git","svn_url":"https://github.com/jenkinsci/github-plugin","homepage":"http://jenkins-ci.org/","size":1356,"stargazers_count":115,"watchers_count":115,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":9,"forks":149,"open_issues":9,"watchers":115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59"},"html":{"href":"https://github.com/jenkinsci/github-plugin/pull/59"},"issue":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/issues/59"},"comments":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/github-plugin/statuses/eaa1de63bd7b8d9c6b4d37d8510e120bc2050ce2"}}}}