{"action":"created","comment":{"url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/comments/47758936","id":47758936,"diff_hunk":"@@ -60,14 +60,12 @@ LineCommentsTrigger.TYPE = \"line_comments\";\n \n class PullRequestListTrigger extends Trigger {\n     static TYPE: string;\n-    myPulls: Array<PullRequest>;\n-    assignedPulls: Array<PullRequest>;\n+    pulls: Object;\n     error: ?string;\n \n-    constructor(myPulls: Array<PullRequest>, assignedPulls: Array<PullRequest>, error: ?string) {\n+    constructor(pulls: Object, error: ?string) {","path":"lib/logic/triggers.js","position":10,"original_position":10,"commit_id":"57ab93738459edf4785e83c437f562d671de3b3a","original_commit_id":"57ab93738459edf4785e83c437f562d671de3b3a","user":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"body":"When you say `Object` you don't *really* mean that, you mean it more as a record type. Can we please represent it as such? E.g.\n\n```javascript\nconstructor(pulls: {assigned: { needsAction: PullRequest[], othersInvolved: PullRequest[], noAction: PullRequest[] } }, error: ?string) {\n```\n\nOf course this is getting unruly, so it might be worth either:\n - Splitting it up in the constructor args as it was before.\n - Pass in an array of `PullRequest` and let the trigger bucket them.\n\nI'm thinking the latter.","created_at":"2015-12-16T10:25:33Z","updated_at":"2015-12-16T10:25:33Z","html_url":"https://github.com/Kegsay/github-pull-review/pull/73#discussion_r47758936","pull_request_url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/comments/47758936"},"html":{"href":"https://github.com/Kegsay/github-pull-review/pull/73#discussion_r47758936"},"pull_request":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73","id":53479471,"html_url":"https://github.com/Kegsay/github-pull-review/pull/73","diff_url":"https://github.com/Kegsay/github-pull-review/pull/73.diff","patch_url":"https://github.com/Kegsay/github-pull-review/pull/73.patch","issue_url":"https://api.github.com/repos/Kegsay/github-pull-review/issues/73","number":73,"state":"open","locked":false,"title":"List PRs in which a user is involved","user":{"login":"illicitonion","id":1131704,"avatar_url":"https://avatars.githubusercontent.com/u/1131704?v=3","gravatar_id":"","url":"https://api.github.com/users/illicitonion","html_url":"https://github.com/illicitonion","followers_url":"https://api.github.com/users/illicitonion/followers","following_url":"https://api.github.com/users/illicitonion/following{/other_user}","gists_url":"https://api.github.com/users/illicitonion/gists{/gist_id}","starred_url":"https://api.github.com/users/illicitonion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illicitonion/subscriptions","organizations_url":"https://api.github.com/users/illicitonion/orgs","repos_url":"https://api.github.com/users/illicitonion/repos","events_url":"https://api.github.com/users/illicitonion/events{/privacy}","received_events_url":"https://api.github.com/users/illicitonion/received_events","type":"User","site_admin":false},"body":"This is a very coarse category (just listing, not categorising), we can\r\nbring in more granularity as/when it becomes clear what would be useful.","created_at":"2015-12-12T16:20:20Z","updated_at":"2015-12-16T10:25:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de0eb25c5a34c3f8b122ad2ebc545f84eeb18e9a","assignee":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73/commits","review_comments_url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73/comments","review_comment_url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kegsay/github-pull-review/issues/73/comments","statuses_url":"https://api.github.com/repos/Kegsay/github-pull-review/statuses/57ab93738459edf4785e83c437f562d671de3b3a","head":{"label":"illicitonion:involves","ref":"involves","sha":"57ab93738459edf4785e83c437f562d671de3b3a","user":{"login":"illicitonion","id":1131704,"avatar_url":"https://avatars.githubusercontent.com/u/1131704?v=3","gravatar_id":"","url":"https://api.github.com/users/illicitonion","html_url":"https://github.com/illicitonion","followers_url":"https://api.github.com/users/illicitonion/followers","following_url":"https://api.github.com/users/illicitonion/following{/other_user}","gists_url":"https://api.github.com/users/illicitonion/gists{/gist_id}","starred_url":"https://api.github.com/users/illicitonion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illicitonion/subscriptions","organizations_url":"https://api.github.com/users/illicitonion/orgs","repos_url":"https://api.github.com/users/illicitonion/repos","events_url":"https://api.github.com/users/illicitonion/events{/privacy}","received_events_url":"https://api.github.com/users/illicitonion/received_events","type":"User","site_admin":false},"repo":{"id":45145529,"name":"github-pull-review","full_name":"illicitonion/github-pull-review","owner":{"login":"illicitonion","id":1131704,"avatar_url":"https://avatars.githubusercontent.com/u/1131704?v=3","gravatar_id":"","url":"https://api.github.com/users/illicitonion","html_url":"https://github.com/illicitonion","followers_url":"https://api.github.com/users/illicitonion/followers","following_url":"https://api.github.com/users/illicitonion/following{/other_user}","gists_url":"https://api.github.com/users/illicitonion/gists{/gist_id}","starred_url":"https://api.github.com/users/illicitonion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illicitonion/subscriptions","organizations_url":"https://api.github.com/users/illicitonion/orgs","repos_url":"https://api.github.com/users/illicitonion/repos","events_url":"https://api.github.com/users/illicitonion/events{/privacy}","received_events_url":"https://api.github.com/users/illicitonion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/illicitonion/github-pull-review","description":"A better way to review pull requests","fork":true,"url":"https://api.github.com/repos/illicitonion/github-pull-review","forks_url":"https://api.github.com/repos/illicitonion/github-pull-review/forks","keys_url":"https://api.github.com/repos/illicitonion/github-pull-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/illicitonion/github-pull-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/illicitonion/github-pull-review/teams","hooks_url":"https://api.github.com/repos/illicitonion/github-pull-review/hooks","issue_events_url":"https://api.github.com/repos/illicitonion/github-pull-review/issues/events{/number}","events_url":"https://api.github.com/repos/illicitonion/github-pull-review/events","assignees_url":"https://api.github.com/repos/illicitonion/github-pull-review/assignees{/user}","branches_url":"https://api.github.com/repos/illicitonion/github-pull-review/branches{/branch}","tags_url":"https://api.github.com/repos/illicitonion/github-pull-review/tags","blobs_url":"https://api.github.com/repos/illicitonion/github-pull-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/illicitonion/github-pull-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/illicitonion/github-pull-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/illicitonion/github-pull-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/illicitonion/github-pull-review/statuses/{sha}","languages_url":"https://api.github.com/repos/illicitonion/github-pull-review/languages","stargazers_url":"https://api.github.com/repos/illicitonion/github-pull-review/stargazers","contributors_url":"https://api.github.com/repos/illicitonion/github-pull-review/contributors","subscribers_url":"https://api.github.com/repos/illicitonion/github-pull-review/subscribers","subscription_url":"https://api.github.com/repos/illicitonion/github-pull-review/subscription","commits_url":"https://api.github.com/repos/illicitonion/github-pull-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/illicitonion/github-pull-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/illicitonion/github-pull-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/illicitonion/github-pull-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/illicitonion/github-pull-review/contents/{+path}","compare_url":"https://api.github.com/repos/illicitonion/github-pull-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/illicitonion/github-pull-review/merges","archive_url":"https://api.github.com/repos/illicitonion/github-pull-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/illicitonion/github-pull-review/downloads","issues_url":"https://api.github.com/repos/illicitonion/github-pull-review/issues{/number}","pulls_url":"https://api.github.com/repos/illicitonion/github-pull-review/pulls{/number}","milestones_url":"https://api.github.com/repos/illicitonion/github-pull-review/milestones{/number}","notifications_url":"https://api.github.com/repos/illicitonion/github-pull-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/illicitonion/github-pull-review/labels{/name}","releases_url":"https://api.github.com/repos/illicitonion/github-pull-review/releases{/id}","created_at":"2015-10-28T22:26:44Z","updated_at":"2015-10-28T22:26:45Z","pushed_at":"2015-12-12T16:49:08Z","git_url":"git://github.com/illicitonion/github-pull-review.git","ssh_url":"git@github.com:illicitonion/github-pull-review.git","clone_url":"https://github.com/illicitonion/github-pull-review.git","svn_url":"https://github.com/illicitonion/github-pull-review","homepage":null,"size":1459,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Kegsay:master","ref":"master","sha":"f91633524739051deb7d218c10fbfdd549e36152","user":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"repo":{"id":42772013,"name":"github-pull-review","full_name":"Kegsay/github-pull-review","owner":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kegsay/github-pull-review","description":"A better way to review pull requests","fork":false,"url":"https://api.github.com/repos/Kegsay/github-pull-review","forks_url":"https://api.github.com/repos/Kegsay/github-pull-review/forks","keys_url":"https://api.github.com/repos/Kegsay/github-pull-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kegsay/github-pull-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kegsay/github-pull-review/teams","hooks_url":"https://api.github.com/repos/Kegsay/github-pull-review/hooks","issue_events_url":"https://api.github.com/repos/Kegsay/github-pull-review/issues/events{/number}","events_url":"https://api.github.com/repos/Kegsay/github-pull-review/events","assignees_url":"https://api.github.com/repos/Kegsay/github-pull-review/assignees{/user}","branches_url":"https://api.github.com/repos/Kegsay/github-pull-review/branches{/branch}","tags_url":"https://api.github.com/repos/Kegsay/github-pull-review/tags","blobs_url":"https://api.github.com/repos/Kegsay/github-pull-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kegsay/github-pull-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kegsay/github-pull-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kegsay/github-pull-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kegsay/github-pull-review/statuses/{sha}","languages_url":"https://api.github.com/repos/Kegsay/github-pull-review/languages","stargazers_url":"https://api.github.com/repos/Kegsay/github-pull-review/stargazers","contributors_url":"https://api.github.com/repos/Kegsay/github-pull-review/contributors","subscribers_url":"https://api.github.com/repos/Kegsay/github-pull-review/subscribers","subscription_url":"https://api.github.com/repos/Kegsay/github-pull-review/subscription","commits_url":"https://api.github.com/repos/Kegsay/github-pull-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kegsay/github-pull-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kegsay/github-pull-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kegsay/github-pull-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kegsay/github-pull-review/contents/{+path}","compare_url":"https://api.github.com/repos/Kegsay/github-pull-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kegsay/github-pull-review/merges","archive_url":"https://api.github.com/repos/Kegsay/github-pull-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kegsay/github-pull-review/downloads","issues_url":"https://api.github.com/repos/Kegsay/github-pull-review/issues{/number}","pulls_url":"https://api.github.com/repos/Kegsay/github-pull-review/pulls{/number}","milestones_url":"https://api.github.com/repos/Kegsay/github-pull-review/milestones{/number}","notifications_url":"https://api.github.com/repos/Kegsay/github-pull-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kegsay/github-pull-review/labels{/name}","releases_url":"https://api.github.com/repos/Kegsay/github-pull-review/releases{/id}","created_at":"2015-09-19T12:31:57Z","updated_at":"2015-12-07T21:59:03Z","pushed_at":"2015-12-12T16:49:24Z","git_url":"git://github.com/Kegsay/github-pull-review.git","ssh_url":"git@github.com:Kegsay/github-pull-review.git","clone_url":"https://github.com/Kegsay/github-pull-review.git","svn_url":"https://github.com/Kegsay/github-pull-review","homepage":null,"size":1543,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":31,"forks":3,"open_issues":31,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73"},"html":{"href":"https://github.com/Kegsay/github-pull-review/pull/73"},"issue":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/issues/73"},"comments":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/Kegsay/github-pull-review/statuses/57ab93738459edf4785e83c437f562d671de3b3a"}}}}