{"action":"opened","number":52,"pull_request":{"url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/52","id":46479795,"html_url":"https://github.com/hubot-scripts/hubot-pager-me/pull/52","diff_url":"https://github.com/hubot-scripts/hubot-pager-me/pull/52.diff","patch_url":"https://github.com/hubot-scripts/hubot-pager-me/pull/52.patch","issue_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/52","number":52,"state":"open","locked":false,"title":"Refactor pagerduty","user":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"body":"I'm trying not to change behavior at all, but just get things in a better place. Some goals so far:\r\n\r\n* general code cleanup\r\n* move PagerDuty API interactions to their own class\r\n* more idiomatic error handling\r\n\r\nI'm considering this a work in progress still.","created_at":"2015-10-01T02:39:59Z","updated_at":"2015-10-01T02:39:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b56ef312f460fa49616d2f978518cf8e89904668","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/52/commits","review_comments_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/52/comments","review_comment_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/52/comments","statuses_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/statuses/77c00451662451427ad613dcccdacbfbe2711339","head":{"label":"hubot-scripts:refactor-pagerduty","ref":"refactor-pagerduty","sha":"77c00451662451427ad613dcccdacbfbe2711339","user":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"repo":{"id":21144465,"name":"hubot-pager-me","full_name":"hubot-scripts/hubot-pager-me","owner":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hubot-scripts/hubot-pager-me","description":"PagerDuty integration for Hubot","fork":false,"url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me","forks_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/forks","keys_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/teams","hooks_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/hooks","issue_events_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/events{/number}","events_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/events","assignees_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/assignees{/user}","branches_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/branches{/branch}","tags_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/tags","blobs_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/refs{/sha}","trees_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/statuses/{sha}","languages_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/languages","stargazers_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/stargazers","contributors_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/contributors","subscribers_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/subscribers","subscription_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/subscription","commits_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/commits{/sha}","git_commits_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/commits{/sha}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/comments{/number}","issue_comment_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/comments{/number}","contents_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/contents/{+path}","compare_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/merges","archive_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/downloads","issues_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues{/number}","pulls_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls{/number}","milestones_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/milestones{/number}","notifications_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/labels{/name}","releases_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/releases{/id}","created_at":"2014-06-23T22:29:02Z","updated_at":"2015-09-30T21:41:43Z","pushed_at":"2015-10-01T02:40:00Z","git_url":"git://github.com/hubot-scripts/hubot-pager-me.git","ssh_url":"git@github.com:hubot-scripts/hubot-pager-me.git","clone_url":"https://github.com/hubot-scripts/hubot-pager-me.git","svn_url":"https://github.com/hubot-scripts/hubot-pager-me","homepage":"https://www.npmjs.com/package/hubot-pager-me","size":999,"stargazers_count":24,"watchers_count":24,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":10,"forks":30,"open_issues":10,"watchers":24,"default_branch":"master"}},"base":{"label":"hubot-scripts:master","ref":"master","sha":"89de8a0fd1e2a8af91a1d122888834ee355ad3be","user":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"repo":{"id":21144465,"name":"hubot-pager-me","full_name":"hubot-scripts/hubot-pager-me","owner":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hubot-scripts/hubot-pager-me","description":"PagerDuty integration for Hubot","fork":false,"url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me","forks_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/forks","keys_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/teams","hooks_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/hooks","issue_events_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/events{/number}","events_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/events","assignees_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/assignees{/user}","branches_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/branches{/branch}","tags_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/tags","blobs_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/refs{/sha}","trees_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/statuses/{sha}","languages_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/languages","stargazers_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/stargazers","contributors_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/contributors","subscribers_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/subscribers","subscription_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/subscription","commits_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/commits{/sha}","git_commits_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/git/commits{/sha}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/comments{/number}","issue_comment_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/comments{/number}","contents_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/contents/{+path}","compare_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/merges","archive_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/downloads","issues_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues{/number}","pulls_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls{/number}","milestones_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/milestones{/number}","notifications_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/labels{/name}","releases_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/releases{/id}","created_at":"2014-06-23T22:29:02Z","updated_at":"2015-09-30T21:41:43Z","pushed_at":"2015-10-01T02:40:00Z","git_url":"git://github.com/hubot-scripts/hubot-pager-me.git","ssh_url":"git@github.com:hubot-scripts/hubot-pager-me.git","clone_url":"https://github.com/hubot-scripts/hubot-pager-me.git","svn_url":"https://github.com/hubot-scripts/hubot-pager-me","homepage":"https://www.npmjs.com/package/hubot-pager-me","size":999,"stargazers_count":24,"watchers_count":24,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":10,"forks":30,"open_issues":10,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/52"},"html":{"href":"https://github.com/hubot-scripts/hubot-pager-me/pull/52"},"issue":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/52"},"comments":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/statuses/77c00451662451427ad613dcccdacbfbe2711339"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":27,"additions":325,"deletions":171,"changed_files":3}}