{"action":"created","comment":{"url":"https://api.github.com/repos/github/hubot-pager-me/pulls/comments/168442529","pull_request_review_id":96807026,"id":168442529,"diff_hunk":"@@ -56,8 +56,30 @@ module.exports =\n       unless res.statusCode is 200\n         cb(new PagerDutyError(\"#{res.statusCode} back from #{path}\"))\n         return\n+      \n+      cb(null, body, res)\n \n-      cb(null, body)\n+  getAll: (path, query, key, all_cb) ->\n+    entries = []\n+    `var self = this`\n+\n+    if not query[\"offset\"]\n+      query[\"offset\"] = 0\n+    \n+    cb = (err, body, res) ->\n+      if err?\n+        all_cb(err)\n+        return\n+\n+      entries = entries.concat body[key]\n+      if res.more?\n+        query[\"offset\"] += 25","path":"src/pagerduty.coffee","position":22,"original_position":22,"commit_id":"4a0a43733e4aab529a573e9374f0beaa686ec4e5","original_commit_id":"4a0a43733e4aab529a573e9374f0beaa686ec4e5","user":{"login":"jamiehannaford","id":1867202,"avatar_url":"https://avatars1.githubusercontent.com/u/1867202?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiehannaford","html_url":"https://github.com/jamiehannaford","followers_url":"https://api.github.com/users/jamiehannaford/followers","following_url":"https://api.github.com/users/jamiehannaford/following{/other_user}","gists_url":"https://api.github.com/users/jamiehannaford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiehannaford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiehannaford/subscriptions","organizations_url":"https://api.github.com/users/jamiehannaford/orgs","repos_url":"https://api.github.com/users/jamiehannaford/repos","events_url":"https://api.github.com/users/jamiehannaford/events{/privacy}","received_events_url":"https://api.github.com/users/jamiehannaford/received_events","type":"User","site_admin":true},"body":"actually we can use `body.limit`","created_at":"2018-02-15T11:01:04Z","updated_at":"2018-02-15T11:01:04Z","html_url":"https://github.com/github/hubot-pager-me/pull/11#discussion_r168442529","pull_request_url":"https://api.github.com/repos/github/hubot-pager-me/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/github/hubot-pager-me/pulls/comments/168442529"},"html":{"href":"https://github.com/github/hubot-pager-me/pull/11#discussion_r168442529"},"pull_request":{"href":"https://api.github.com/repos/github/hubot-pager-me/pulls/11"}},"in_reply_to_id":168382316},"pull_request":{"url":"https://api.github.com/repos/github/hubot-pager-me/pulls/11","id":169116199,"html_url":"https://github.com/github/hubot-pager-me/pull/11","diff_url":"https://github.com/github/hubot-pager-me/pull/11.diff","patch_url":"https://github.com/github/hubot-pager-me/pull/11.patch","issue_url":"https://api.github.com/repos/github/hubot-pager-me/issues/11","number":11,"state":"open","locked":false,"title":"Fix my schedule","user":{"login":"jamiehannaford","id":1867202,"avatar_url":"https://avatars1.githubusercontent.com/u/1867202?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiehannaford","html_url":"https://github.com/jamiehannaford","followers_url":"https://api.github.com/users/jamiehannaford/followers","following_url":"https://api.github.com/users/jamiehannaford/following{/other_user}","gists_url":"https://api.github.com/users/jamiehannaford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiehannaford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiehannaford/subscriptions","organizations_url":"https://api.github.com/users/jamiehannaford/orgs","repos_url":"https://api.github.com/users/jamiehannaford/repos","events_url":"https://api.github.com/users/jamiehannaford/events{/privacy}","received_events_url":"https://api.github.com/users/jamiehannaford/received_events","type":"User","site_admin":true},"body":"Fixes https://github.com/github/sre-lifecycle/issues/335\r\n\r\n/cc @github/sre-lifecycle ","created_at":"2018-02-14T13:56:46Z","updated_at":"2018-02-15T11:01:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2385d934d84550968f6b868bdf1ce80940b86eef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/github/hubot-pager-me/pulls/11/commits","review_comments_url":"https://api.github.com/repos/github/hubot-pager-me/pulls/11/comments","review_comment_url":"https://api.github.com/repos/github/hubot-pager-me/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github/hubot-pager-me/issues/11/comments","statuses_url":"https://api.github.com/repos/github/hubot-pager-me/statuses/4a0a43733e4aab529a573e9374f0beaa686ec4e5","head":{"label":"jamiehannaford:fix-my-schedule","ref":"fix-my-schedule","sha":"4a0a43733e4aab529a573e9374f0beaa686ec4e5","user":{"login":"jamiehannaford","id":1867202,"avatar_url":"https://avatars1.githubusercontent.com/u/1867202?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiehannaford","html_url":"https://github.com/jamiehannaford","followers_url":"https://api.github.com/users/jamiehannaford/followers","following_url":"https://api.github.com/users/jamiehannaford/following{/other_user}","gists_url":"https://api.github.com/users/jamiehannaford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiehannaford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiehannaford/subscriptions","organizations_url":"https://api.github.com/users/jamiehannaford/orgs","repos_url":"https://api.github.com/users/jamiehannaford/repos","events_url":"https://api.github.com/users/jamiehannaford/events{/privacy}","received_events_url":"https://api.github.com/users/jamiehannaford/received_events","type":"User","site_admin":true},"repo":{"id":117275180,"name":"hubot-pager-me","full_name":"jamiehannaford/hubot-pager-me","owner":{"login":"jamiehannaford","id":1867202,"avatar_url":"https://avatars1.githubusercontent.com/u/1867202?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiehannaford","html_url":"https://github.com/jamiehannaford","followers_url":"https://api.github.com/users/jamiehannaford/followers","following_url":"https://api.github.com/users/jamiehannaford/following{/other_user}","gists_url":"https://api.github.com/users/jamiehannaford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiehannaford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiehannaford/subscriptions","organizations_url":"https://api.github.com/users/jamiehannaford/orgs","repos_url":"https://api.github.com/users/jamiehannaford/repos","events_url":"https://api.github.com/users/jamiehannaford/events{/privacy}","received_events_url":"https://api.github.com/users/jamiehannaford/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/jamiehannaford/hubot-pager-me","description":"PagerDuty integration for Hubot","fork":true,"url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me","forks_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/forks","keys_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/teams","hooks_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/hooks","issue_events_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/issues/events{/number}","events_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/events","assignees_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/assignees{/user}","branches_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/branches{/branch}","tags_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/tags","blobs_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/statuses/{sha}","languages_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/languages","stargazers_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/stargazers","contributors_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/contributors","subscribers_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/subscribers","subscription_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/subscription","commits_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/contents/{+path}","compare_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/merges","archive_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/downloads","issues_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/issues{/number}","pulls_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/pulls{/number}","milestones_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/milestones{/number}","notifications_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/labels{/name}","releases_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/releases{/id}","deployments_url":"https://api.github.com/repos/jamiehannaford/hubot-pager-me/deployments","created_at":"2018-01-12T18:32:46Z","updated_at":"2018-01-12T18:32:47Z","pushed_at":"2018-02-14T14:24:37Z","git_url":"git://github.com/jamiehannaford/hubot-pager-me.git","ssh_url":"git@github.com:jamiehannaford/hubot-pager-me.git","clone_url":"https://github.com/jamiehannaford/hubot-pager-me.git","svn_url":"https://github.com/jamiehannaford/hubot-pager-me","homepage":"https://www.npmjs.com/package/hubot-pager-me","size":281,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"c3402c2e67737dd65d58907fab5132ab423b6246","user":{"login":"github","id":9919,"avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":44947240,"name":"hubot-pager-me","full_name":"github/hubot-pager-me","owner":{"login":"github","id":9919,"avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/hubot-pager-me","description":"PagerDuty integration for Hubot","fork":true,"url":"https://api.github.com/repos/github/hubot-pager-me","forks_url":"https://api.github.com/repos/github/hubot-pager-me/forks","keys_url":"https://api.github.com/repos/github/hubot-pager-me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/hubot-pager-me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/hubot-pager-me/teams","hooks_url":"https://api.github.com/repos/github/hubot-pager-me/hooks","issue_events_url":"https://api.github.com/repos/github/hubot-pager-me/issues/events{/number}","events_url":"https://api.github.com/repos/github/hubot-pager-me/events","assignees_url":"https://api.github.com/repos/github/hubot-pager-me/assignees{/user}","branches_url":"https://api.github.com/repos/github/hubot-pager-me/branches{/branch}","tags_url":"https://api.github.com/repos/github/hubot-pager-me/tags","blobs_url":"https://api.github.com/repos/github/hubot-pager-me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/hubot-pager-me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/hubot-pager-me/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/hubot-pager-me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/hubot-pager-me/statuses/{sha}","languages_url":"https://api.github.com/repos/github/hubot-pager-me/languages","stargazers_url":"https://api.github.com/repos/github/hubot-pager-me/stargazers","contributors_url":"https://api.github.com/repos/github/hubot-pager-me/contributors","subscribers_url":"https://api.github.com/repos/github/hubot-pager-me/subscribers","subscription_url":"https://api.github.com/repos/github/hubot-pager-me/subscription","commits_url":"https://api.github.com/repos/github/hubot-pager-me/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/hubot-pager-me/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/hubot-pager-me/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/hubot-pager-me/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/hubot-pager-me/contents/{+path}","compare_url":"https://api.github.com/repos/github/hubot-pager-me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/hubot-pager-me/merges","archive_url":"https://api.github.com/repos/github/hubot-pager-me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/hubot-pager-me/downloads","issues_url":"https://api.github.com/repos/github/hubot-pager-me/issues{/number}","pulls_url":"https://api.github.com/repos/github/hubot-pager-me/pulls{/number}","milestones_url":"https://api.github.com/repos/github/hubot-pager-me/milestones{/number}","notifications_url":"https://api.github.com/repos/github/hubot-pager-me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/hubot-pager-me/labels{/name}","releases_url":"https://api.github.com/repos/github/hubot-pager-me/releases{/id}","deployments_url":"https://api.github.com/repos/github/hubot-pager-me/deployments","created_at":"2015-10-26T05:07:45Z","updated_at":"2018-01-22T18:46:29Z","pushed_at":"2018-02-14T14:24:38Z","git_url":"git://github.com/github/hubot-pager-me.git","ssh_url":"git@github.com:github/hubot-pager-me.git","clone_url":"https://github.com/github/hubot-pager-me.git","svn_url":"https://github.com/github/hubot-pager-me","homepage":"https://www.npmjs.com/package/hubot-pager-me","size":303,"stargazers_count":3,"watchers_count":3,"language":"CoffeeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":6,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/hubot-pager-me/pulls/11"},"html":{"href":"https://github.com/github/hubot-pager-me/pull/11"},"issue":{"href":"https://api.github.com/repos/github/hubot-pager-me/issues/11"},"comments":{"href":"https://api.github.com/repos/github/hubot-pager-me/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/github/hubot-pager-me/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/github/hubot-pager-me/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github/hubot-pager-me/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/github/hubot-pager-me/statuses/4a0a43733e4aab529a573e9374f0beaa686ec4e5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"jamiehannaford"}}