{"action":"created","comment":{"url":"https://api.github.com/repos/screwdriver-cd/models/pulls/comments/135639409","pull_request_review_id":59073653,"id":135639409,"diff_hunk":"@@ -469,6 +474,13 @@ class PipelineModel extends BaseModel {\n                 // sort them by pr number\n                 prJobs = prJobs.sort((job1, job2) => job1.prNum - job2.prNum);\n \n+                if (config && config.type === 'pr') {","path":"lib/pipeline.js","position":23,"original_position":23,"commit_id":"befd0b8914cbd17c951f7a82cef3789af63c4909","original_commit_id":"befd0b8914cbd17c951f7a82cef3789af63c4909","user":{"login":"tkyi","id":3230529,"avatar_url":"https://avatars3.githubusercontent.com/u/3230529?v=4","gravatar_id":"","url":"https://api.github.com/users/tkyi","html_url":"https://github.com/tkyi","followers_url":"https://api.github.com/users/tkyi/followers","following_url":"https://api.github.com/users/tkyi/following{/other_user}","gists_url":"https://api.github.com/users/tkyi/gists{/gist_id}","starred_url":"https://api.github.com/users/tkyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkyi/subscriptions","organizations_url":"https://api.github.com/users/tkyi/orgs","repos_url":"https://api.github.com/users/tkyi/repos","events_url":"https://api.github.com/users/tkyi/events{/privacy}","received_events_url":"https://api.github.com/users/tkyi/received_events","type":"User","site_admin":false},"body":"I'm okay with `pr`","created_at":"2017-08-28T21:25:11Z","updated_at":"2017-08-28T21:25:11Z","html_url":"https://github.com/screwdriver-cd/models/pull/194#discussion_r135639409","pull_request_url":"https://api.github.com/repos/screwdriver-cd/models/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/models/pulls/comments/135639409"},"html":{"href":"https://github.com/screwdriver-cd/models/pull/194#discussion_r135639409"},"pull_request":{"href":"https://api.github.com/repos/screwdriver-cd/models/pulls/194"}},"in_reply_to_id":135633470},"pull_request":{"url":"https://api.github.com/repos/screwdriver-cd/models/pulls/194","id":137779271,"html_url":"https://github.com/screwdriver-cd/models/pull/194","diff_url":"https://github.com/screwdriver-cd/models/pull/194.diff","patch_url":"https://github.com/screwdriver-cd/models/pull/194.patch","issue_url":"https://api.github.com/repos/screwdriver-cd/models/issues/194","number":194,"state":"open","locked":false,"title":"feat(collections): Add type to config for pipeline getJobs","user":{"login":"joelseq","id":12389411,"avatar_url":"https://avatars0.githubusercontent.com/u/12389411?v=4","gravatar_id":"","url":"https://api.github.com/users/joelseq","html_url":"https://github.com/joelseq","followers_url":"https://api.github.com/users/joelseq/followers","following_url":"https://api.github.com/users/joelseq/following{/other_user}","gists_url":"https://api.github.com/users/joelseq/gists{/gist_id}","starred_url":"https://api.github.com/users/joelseq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelseq/subscriptions","organizations_url":"https://api.github.com/users/joelseq/orgs","repos_url":"https://api.github.com/users/joelseq/repos","events_url":"https://api.github.com/users/joelseq/events{/privacy}","received_events_url":"https://api.github.com/users/joelseq/received_events","type":"User","site_admin":false},"body":"## Context\r\n\r\nFor the user dashboards we need to get info about the number of PRs open and failing for each pipeline in a collection. It would be nice to be able to get only the PR jobs for a pipeline with a single call to the model.\r\n\r\n## Objective\r\n\r\nThis PR adds a param to the config of getJobs for the pipeline model to specify an optional type for the jobs wanted. The user can specify either 'pipeline' or 'pr' which would return only the workflow jobs or PR jobs respectively. Not specifying a type will return all the jobs.\r\n\r\n## References\r\n\r\nIssue: [screwdriver-cd/screwdriver#523](https://github.com/screwdriver-cd/screwdriver/issues/523)","created_at":"2017-08-26T00:59:05Z","updated_at":"2017-08-28T21:25:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bed3f4b9feac6fa3e163aaaea8e7b2c112659c3e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/screwdriver-cd/models/pulls/194/commits","review_comments_url":"https://api.github.com/repos/screwdriver-cd/models/pulls/194/comments","review_comment_url":"https://api.github.com/repos/screwdriver-cd/models/pulls/comments{/number}","comments_url":"https://api.github.com/repos/screwdriver-cd/models/issues/194/comments","statuses_url":"https://api.github.com/repos/screwdriver-cd/models/statuses/befd0b8914cbd17c951f7a82cef3789af63c4909","head":{"label":"screwdriver-cd:modify-pipelines-getjobs","ref":"modify-pipelines-getjobs","sha":"befd0b8914cbd17c951f7a82cef3789af63c4909","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":62759755,"name":"models","full_name":"screwdriver-cd/models","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/models","description":"Screwdriver Models","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/models","forks_url":"https://api.github.com/repos/screwdriver-cd/models/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/models/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/models/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/models/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/models/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/models/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/models/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/models/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/models/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/models/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/models/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/models/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/models/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/models/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/models/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/models/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/models/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/models/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/models/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/models/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/models/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/models/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/models/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/models/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/models/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/models/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/models/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/models/deployments","created_at":"2016-07-06T23:24:04Z","updated_at":"2017-07-28T03:08:07Z","pushed_at":"2017-08-26T00:59:05Z","git_url":"git://github.com/screwdriver-cd/models.git","ssh_url":"git@github.com:screwdriver-cd/models.git","clone_url":"https://github.com/screwdriver-cd/models.git","svn_url":"https://github.com/screwdriver-cd/models","homepage":"https://www.npmjs.com/package/screwdriver-models","size":440,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"screwdriver-cd:master","ref":"master","sha":"bdea252509a066ecd2547d00293ac693b9c9a9ef","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":62759755,"name":"models","full_name":"screwdriver-cd/models","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/models","description":"Screwdriver Models","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/models","forks_url":"https://api.github.com/repos/screwdriver-cd/models/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/models/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/models/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/models/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/models/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/models/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/models/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/models/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/models/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/models/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/models/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/models/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/models/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/models/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/models/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/models/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/models/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/models/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/models/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/models/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/models/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/models/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/models/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/models/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/models/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/models/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/models/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/models/deployments","created_at":"2016-07-06T23:24:04Z","updated_at":"2017-07-28T03:08:07Z","pushed_at":"2017-08-26T00:59:05Z","git_url":"git://github.com/screwdriver-cd/models.git","ssh_url":"git@github.com:screwdriver-cd/models.git","clone_url":"https://github.com/screwdriver-cd/models.git","svn_url":"https://github.com/screwdriver-cd/models","homepage":"https://www.npmjs.com/package/screwdriver-models","size":440,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/models/pulls/194"},"html":{"href":"https://github.com/screwdriver-cd/models/pull/194"},"issue":{"href":"https://api.github.com/repos/screwdriver-cd/models/issues/194"},"comments":{"href":"https://api.github.com/repos/screwdriver-cd/models/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/screwdriver-cd/models/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/screwdriver-cd/models/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/screwdriver-cd/models/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/screwdriver-cd/models/statuses/befd0b8914cbd17c951f7a82cef3789af63c4909"}}}}
{"actor":{"display_login":"tkyi"}}