{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/comments/53562561","id":53562561,"diff_hunk":"@@ -308,5 +308,11 @@ def find_all_jobs_by_status(self, repo_name, revision, status):\n             except TreeherderError:\n                 continue\n             if job_status == status:\n-                builder_names.append(job['ref_data_name'])\n+                if job['build_system_type'] == 'taskcluster':\n+                    platform = '[TC]'\n+                    job_type_name = job['job_type_name'].replace('-', '')","path":"mozci/query_jobs.py","position":7,"original_position":7,"commit_id":"7032a230f93890805df1ab17922f45c1386d8062","original_commit_id":"7032a230f93890805df1ab17922f45c1386d8062","user":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"body":"hmm, I haven't got the point. sorry :(\r\n\r\nI foully understand we will switch to TC in the further and we may not need buildername anymore at that point. But how about now? AFAIK, we can't use job's job_type_name to trigger a job if it's a taskcluster job. Maybe we could back to this issue after this [one](https://github.com/mozilla/mozilla_ci_tools/issues/426)  been first fixed?\r\n","created_at":"2016-02-21T06:53:54Z","updated_at":"2016-02-21T06:53:54Z","html_url":"https://github.com/mozilla/mozilla_ci_tools/pull/436#discussion_r53562561","pull_request_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436","_links":{"self":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/comments/53562561"},"html":{"href":"https://github.com/mozilla/mozilla_ci_tools/pull/436#discussion_r53562561"},"pull_request":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436","id":59964250,"html_url":"https://github.com/mozilla/mozilla_ci_tools/pull/436","diff_url":"https://github.com/mozilla/mozilla_ci_tools/pull/436.diff","patch_url":"https://github.com/mozilla/mozilla_ci_tools/pull/436.patch","issue_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues/436","number":436,"state":"open","locked":false,"title":"fix for the find_all_jobs_by_status","user":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-19T15:32:20Z","updated_at":"2016-02-21T06:53:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4e244bbfa66dbb80d1ebd90e5d138d04be387dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436/commits","review_comments_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436/comments","review_comment_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues/436/comments","statuses_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/statuses/7032a230f93890805df1ab17922f45c1386d8062","head":{"label":"MikeLing:furtherimport-346","ref":"furtherimport-346","sha":"7032a230f93890805df1ab17922f45c1386d8062","user":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"repo":{"id":45397710,"name":"mozilla_ci_tools","full_name":"MikeLing/mozilla_ci_tools","owner":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikeLing/mozilla_ci_tools","description":"This repositories contains a collection of tools that allows to interact with Mozilla's continuos integration.","fork":true,"url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools","forks_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/forks","keys_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/teams","hooks_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/hooks","issue_events_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/issues/events{/number}","events_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/events","assignees_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/assignees{/user}","branches_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/branches{/branch}","tags_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/tags","blobs_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/languages","stargazers_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/stargazers","contributors_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/contributors","subscribers_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/subscribers","subscription_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/subscription","commits_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/contents/{+path}","compare_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/merges","archive_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/downloads","issues_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/issues{/number}","pulls_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/labels{/name}","releases_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/releases{/id}","deployments_url":"https://api.github.com/repos/MikeLing/mozilla_ci_tools/deployments","created_at":"2015-11-02T13:58:28Z","updated_at":"2016-01-12T12:49:46Z","pushed_at":"2016-02-19T15:31:58Z","git_url":"git://github.com/MikeLing/mozilla_ci_tools.git","ssh_url":"git@github.com:MikeLing/mozilla_ci_tools.git","clone_url":"https://github.com/MikeLing/mozilla_ci_tools.git","svn_url":"https://github.com/MikeLing/mozilla_ci_tools","homepage":null,"size":888,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mozilla:master","ref":"master","sha":"52c75502fd7129c01b0ada1a2df219b259b9cb8e","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":25268704,"name":"mozilla_ci_tools","full_name":"mozilla/mozilla_ci_tools","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/mozilla_ci_tools","description":"This repositories contains a collection of tools that allows to interact with Mozilla's continuos integration.","fork":false,"url":"https://api.github.com/repos/mozilla/mozilla_ci_tools","forks_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/forks","keys_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/teams","hooks_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/hooks","issue_events_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/events","assignees_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/tags","blobs_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/languages","stargazers_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/stargazers","contributors_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/contributors","subscribers_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/subscribers","subscription_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/subscription","commits_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/merges","archive_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/downloads","issues_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/mozilla_ci_tools/deployments","created_at":"2014-10-15T18:53:14Z","updated_at":"2016-01-11T20:08:54Z","pushed_at":"2016-02-19T15:32:20Z","git_url":"git://github.com/mozilla/mozilla_ci_tools.git","ssh_url":"git@github.com:mozilla/mozilla_ci_tools.git","clone_url":"https://github.com/mozilla/mozilla_ci_tools.git","svn_url":"https://github.com/mozilla/mozilla_ci_tools","homepage":null,"size":949,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":26,"forks":21,"open_issues":26,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436"},"html":{"href":"https://github.com/mozilla/mozilla_ci_tools/pull/436"},"issue":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues/436"},"comments":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/issues/436/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/pulls/436/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/mozilla_ci_tools/statuses/7032a230f93890805df1ab17922f45c1386d8062"}}}}