{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/github-bot/issues/60","repository_url":"https://api.github.com/repos/nodejs/github-bot","labels_url":"https://api.github.com/repos/nodejs/github-bot/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/github-bot/issues/60/comments","events_url":"https://api.github.com/repos/nodejs/github-bot/issues/60/events","html_url":"https://github.com/nodejs/github-bot/pull/60","id":169698191,"number":60,"title":"Testing webhooks and node core labels","user":{"login":"phillipj","id":1231635,"avatar_url":"https://avatars.githubusercontent.com/u/1231635?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipj","html_url":"https://github.com/phillipj","followers_url":"https://api.github.com/users/phillipj/followers","following_url":"https://api.github.com/users/phillipj/following{/other_user}","gists_url":"https://api.github.com/users/phillipj/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipj/subscriptions","organizations_url":"https://api.github.com/users/phillipj/orgs","repos_url":"https://api.github.com/users/phillipj/repos","events_url":"https://api.github.com/users/phillipj/events{/privacy}","received_events_url":"https://api.github.com/users/phillipj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/github-bot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"phillipj","id":1231635,"avatar_url":"https://avatars.githubusercontent.com/u/1231635?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipj","html_url":"https://github.com/phillipj","followers_url":"https://api.github.com/users/phillipj/followers","following_url":"https://api.github.com/users/phillipj/following{/other_user}","gists_url":"https://api.github.com/users/phillipj/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipj/subscriptions","organizations_url":"https://api.github.com/users/phillipj/orgs","repos_url":"https://api.github.com/users/phillipj/repos","events_url":"https://api.github.com/users/phillipj/events{/privacy}","received_events_url":"https://api.github.com/users/phillipj/received_events","type":"User","site_admin":false},"assignees":[{"login":"phillipj","id":1231635,"avatar_url":"https://avatars.githubusercontent.com/u/1231635?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipj","html_url":"https://github.com/phillipj","followers_url":"https://api.github.com/users/phillipj/followers","following_url":"https://api.github.com/users/phillipj/following{/other_user}","gists_url":"https://api.github.com/users/phillipj/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipj/subscriptions","organizations_url":"https://api.github.com/users/phillipj/orgs","repos_url":"https://api.github.com/users/phillipj/repos","events_url":"https://api.github.com/users/phillipj/events{/privacy}","received_events_url":"https://api.github.com/users/phillipj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-05T21:16:54Z","updated_at":"2016-08-26T21:42:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/github-bot/pulls/60","html_url":"https://github.com/nodejs/github-bot/pull/60","diff_url":"https://github.com/nodejs/github-bot/pull/60.diff","patch_url":"https://github.com/nodejs/github-bot/pull/60.patch"},"body":"This is a first shot at testing the code related to webhooks, and node core labelling specifically.\r\n\r\nThe gist of this is to POST a recorded payload against the bot's `/hooks/github` endpoint, mock responses from github.com, and verify that the bot tried to GET/POST a set of expected github.com API URLs.\r\n\r\nWhile working on this I noticed a couple of unexpected URLs being requested. Found a bug in the old github npm dependency we used, so decided to update that dependency as well.\r\n\r\nAlso moved all tests into `tests/{integration,unit}` directories.\r\n\r\nRefs #55 "},"comment":{"url":"https://api.github.com/repos/nodejs/github-bot/issues/comments/242859133","html_url":"https://github.com/nodejs/github-bot/pull/60#issuecomment-242859133","issue_url":"https://api.github.com/repos/nodejs/github-bot/issues/60","id":242859133,"user":{"login":"phillipj","id":1231635,"avatar_url":"https://avatars.githubusercontent.com/u/1231635?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipj","html_url":"https://github.com/phillipj","followers_url":"https://api.github.com/users/phillipj/followers","following_url":"https://api.github.com/users/phillipj/following{/other_user}","gists_url":"https://api.github.com/users/phillipj/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipj/subscriptions","organizations_url":"https://api.github.com/users/phillipj/orgs","repos_url":"https://api.github.com/users/phillipj/repos","events_url":"https://api.github.com/users/phillipj/events{/privacy}","received_events_url":"https://api.github.com/users/phillipj/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T21:42:40Z","updated_at":"2016-08-26T21:42:40Z","body":"Found that nock returned error to the request callbacks, which didn't really make the tests explode as badly as I wanted. Just pushed a commit fixing that -- I'll probably make that `nock.emitter.on('no match', ..)` weirdness a local helper module later."}}
{"actor":{"display_login":"phillipj"}}