{"action":"opened","number":26,"pull_request":{"url":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/26","id":307201158,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA3MjAxMTU4","html_url":"https://github.com/wikimedia/WhoWroteThat/pull/26","diff_url":"https://github.com/wikimedia/WhoWroteThat/pull/26.diff","patch_url":"https://github.com/wikimedia/WhoWroteThat/pull/26.patch","issue_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/26","number":26,"state":"open","locked":false,"title":"Add error and result handling for API response","user":{"login":"samwilson","id":213655,"node_id":"MDQ6VXNlcjIxMzY1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/213655?v=4","gravatar_id":"","url":"https://api.github.com/users/samwilson","html_url":"https://github.com/samwilson","followers_url":"https://api.github.com/users/samwilson/followers","following_url":"https://api.github.com/users/samwilson/following{/other_user}","gists_url":"https://api.github.com/users/samwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/samwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwilson/subscriptions","organizations_url":"https://api.github.com/users/samwilson/orgs","repos_url":"https://api.github.com/users/samwilson/repos","events_url":"https://api.github.com/users/samwilson/events{/privacy}","received_events_url":"https://api.github.com/users/samwilson/received_events","type":"User","site_admin":false},"body":"Along with some example code in app.js that uses the new API\r\nresult structure.\r\n\r\nhttps://phabricator.wikimedia.org/T226743\r\n\r\nBug: T226743","created_at":"2019-08-14T07:23:09Z","updated_at":"2019-08-14T07:23:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/26/commits","review_comments_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/26/comments","review_comment_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/26/comments","statuses_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/statuses/ca1e60d7e3381662e53a54893f2005b2d8b21cfb","head":{"label":"wikimedia:api-results-T226743","ref":"api-results-T226743","sha":"ca1e60d7e3381662e53a54893f2005b2d8b21cfb","user":{"login":"wikimedia","id":56668,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/56668?v=4","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":184330651,"node_id":"MDEwOlJlcG9zaXRvcnkxODQzMzA2NTE=","name":"WhoWroteThat","full_name":"wikimedia/WhoWroteThat","private":false,"owner":{"login":"wikimedia","id":56668,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/56668?v=4","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wikimedia/WhoWroteThat","description":"Migrating the WhoColor greasemonkey gadget to a browser extension","fork":false,"url":"https://api.github.com/repos/wikimedia/WhoWroteThat","forks_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/forks","keys_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/teams","hooks_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/events","assignees_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/tags","blobs_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/languages","stargazers_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/subscription","commits_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/comments{/number}","contents_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/merges","archive_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/downloads","issues_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/releases{/id}","deployments_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/deployments","created_at":"2019-04-30T20:58:17Z","updated_at":"2019-08-13T22:38:34Z","pushed_at":"2019-08-14T07:21:07Z","git_url":"git://github.com/wikimedia/WhoWroteThat.git","ssh_url":"git@github.com:wikimedia/WhoWroteThat.git","clone_url":"https://github.com/wikimedia/WhoWroteThat.git","svn_url":"https://github.com/wikimedia/WhoWroteThat","homepage":"https://meta.wikimedia.org/wiki/Community_Tech/Who_Wrote_That_tool","size":252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"wikimedia:master","ref":"master","sha":"10f85916c4e3ea80f3c85f06628dfae945d0be4b","user":{"login":"wikimedia","id":56668,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/56668?v=4","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":184330651,"node_id":"MDEwOlJlcG9zaXRvcnkxODQzMzA2NTE=","name":"WhoWroteThat","full_name":"wikimedia/WhoWroteThat","private":false,"owner":{"login":"wikimedia","id":56668,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/56668?v=4","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wikimedia/WhoWroteThat","description":"Migrating the WhoColor greasemonkey gadget to a browser extension","fork":false,"url":"https://api.github.com/repos/wikimedia/WhoWroteThat","forks_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/forks","keys_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/teams","hooks_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/events","assignees_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/tags","blobs_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/languages","stargazers_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/subscription","commits_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/comments{/number}","contents_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/merges","archive_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/downloads","issues_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/releases{/id}","deployments_url":"https://api.github.com/repos/wikimedia/WhoWroteThat/deployments","created_at":"2019-04-30T20:58:17Z","updated_at":"2019-08-13T22:38:34Z","pushed_at":"2019-08-14T07:21:07Z","git_url":"git://github.com/wikimedia/WhoWroteThat.git","ssh_url":"git@github.com:wikimedia/WhoWroteThat.git","clone_url":"https://github.com/wikimedia/WhoWroteThat.git","svn_url":"https://github.com/wikimedia/WhoWroteThat","homepage":"https://meta.wikimedia.org/wiki/Community_Tech/Who_Wrote_That_tool","size":252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/26"},"html":{"href":"https://github.com/wikimedia/WhoWroteThat/pull/26"},"issue":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/26"},"comments":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/wikimedia/WhoWroteThat/statuses/ca1e60d7e3381662e53a54893f2005b2d8b21cfb"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":311,"deletions":16,"changed_files":9}}
{"actor":{"display_login":"samwilson"}}