{"action":"created","comment":{"url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/comments/204536556","pull_request_review_id":139631840,"id":204536556,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDUzNjU1Ng==","diff_hunk":"@@ -24,13 +22,13 @@ func TestParse(t *testing.T) {\n \t\teventHeader string\n \t\teventValue  string\n \t}{\n-\t\t{githubPushBody, \"x-github-event\", GithubPushHeader},\n-\t\t{gitlabPushBody, \"x-gitlab-event\", GitlabPushHeader},\n-\t\t{bitbucketPushBody, \"x-event-key\", BitbucketPushHeader},\n+\t\t{githubPushRawJSON, \"x-github-event\", GithubPushHeader},\n+\t\t{gitlabPushRawJSON, \"x-gitlab-event\", GitlabPushHeader},\n+\t\t{bitbucketPushRawJSON, \"x-event-key\", BitbucketPushHeader},","path":"daemon/inertiad/webhook/webhook_test.go","position":null,"original_position":26,"commit_id":"e1bff5e8504bf8cdd86fba07a68671ca44067204","original_commit_id":"8576252725616eb93c866bf456eb354cca9be222","user":{"login":"bobheadxi","id":23356519,"node_id":"MDQ6VXNlcjIzMzU2NTE5","avatar_url":"https://avatars2.githubusercontent.com/u/23356519?v=4","gravatar_id":"","url":"https://api.github.com/users/bobheadxi","html_url":"https://github.com/bobheadxi","followers_url":"https://api.github.com/users/bobheadxi/followers","following_url":"https://api.github.com/users/bobheadxi/following{/other_user}","gists_url":"https://api.github.com/users/bobheadxi/gists{/gist_id}","starred_url":"https://api.github.com/users/bobheadxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobheadxi/subscriptions","organizations_url":"https://api.github.com/users/bobheadxi/orgs","repos_url":"https://api.github.com/users/bobheadxi/repos","events_url":"https://api.github.com/users/bobheadxi/events{/privacy}","received_events_url":"https://api.github.com/users/bobheadxi/received_events","type":"User","site_admin":false},"body":"💪\r\n\r\nStill trying to convert the our tests to this format, didn't know about this standard until a month ago or so 😢","created_at":"2018-07-23T20:05:50Z","updated_at":"2018-07-23T20:09:12Z","html_url":"https://github.com/ubclaunchpad/inertia/pull/325#discussion_r204536556","pull_request_url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/comments/204536556"},"html":{"href":"https://github.com/ubclaunchpad/inertia/pull/325#discussion_r204536556"},"pull_request":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325","id":203000512,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMDAwNTEy","html_url":"https://github.com/ubclaunchpad/inertia/pull/325","diff_url":"https://github.com/ubclaunchpad/inertia/pull/325.diff","patch_url":"https://github.com/ubclaunchpad/inertia/pull/325.patch","issue_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues/325","number":325,"state":"open","locked":false,"title":"Webhook support for Bitbucket and Dockerhub","user":{"login":"brian-nguyen","id":11564004,"node_id":"MDQ6VXNlcjExNTY0MDA0","avatar_url":"https://avatars3.githubusercontent.com/u/11564004?v=4","gravatar_id":"","url":"https://api.github.com/users/brian-nguyen","html_url":"https://github.com/brian-nguyen","followers_url":"https://api.github.com/users/brian-nguyen/followers","following_url":"https://api.github.com/users/brian-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/brian-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-nguyen/subscriptions","organizations_url":"https://api.github.com/users/brian-nguyen/orgs","repos_url":"https://api.github.com/users/brian-nguyen/repos","events_url":"https://api.github.com/users/brian-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/brian-nguyen/received_events","type":"User","site_admin":false},"body":":tickets: **Ticket(s)**: Closes #307\r\n\r\n---\r\n\r\n## :construction_worker: Changes\r\n\r\nModified webhook package structure:\r\n1. Unexported structs describing webhooks\r\n2. Moved events to their own files.\r\n\r\nWebhook support for Bitbucket Push event and Dockerhub added.\r\nDocker's webhooks aren't as easily distinguishable and are different from the git based ones, so a dedicated handler and parser was implemented. Convenience methods to get relevant data are available.\r\n\r\nNeed some feedback!\r\n\r\nRelated: #201 \r\n\r\n## :flashlight: Testing Instructions\r\n\r\n`make test`\r\nCanary build is also available for live testing.","created_at":"2018-07-21T08:38:42Z","updated_at":"2018-07-23T20:09:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d2fed16a1507fedf26f953be8c37e1fa25dccd1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"PiggySpeed","id":9895090,"node_id":"MDQ6VXNlcjk4OTUwOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/9895090?v=4","gravatar_id":"","url":"https://api.github.com/users/PiggySpeed","html_url":"https://github.com/PiggySpeed","followers_url":"https://api.github.com/users/PiggySpeed/followers","following_url":"https://api.github.com/users/PiggySpeed/following{/other_user}","gists_url":"https://api.github.com/users/PiggySpeed/gists{/gist_id}","starred_url":"https://api.github.com/users/PiggySpeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiggySpeed/subscriptions","organizations_url":"https://api.github.com/users/PiggySpeed/orgs","repos_url":"https://api.github.com/users/PiggySpeed/repos","events_url":"https://api.github.com/users/PiggySpeed/events{/privacy}","received_events_url":"https://api.github.com/users/PiggySpeed/received_events","type":"User","site_admin":false},{"login":"leesw98","id":19914676,"node_id":"MDQ6VXNlcjE5OTE0Njc2","avatar_url":"https://avatars3.githubusercontent.com/u/19914676?v=4","gravatar_id":"","url":"https://api.github.com/users/leesw98","html_url":"https://github.com/leesw98","followers_url":"https://api.github.com/users/leesw98/followers","following_url":"https://api.github.com/users/leesw98/following{/other_user}","gists_url":"https://api.github.com/users/leesw98/gists{/gist_id}","starred_url":"https://api.github.com/users/leesw98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leesw98/subscriptions","organizations_url":"https://api.github.com/users/leesw98/orgs","repos_url":"https://api.github.com/users/leesw98/repos","events_url":"https://api.github.com/users/leesw98/events{/privacy}","received_events_url":"https://api.github.com/users/leesw98/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":781336873,"node_id":"MDU6TGFiZWw3ODEzMzY4NzM=","url":"https://api.github.com/repos/ubclaunchpad/inertia/labels/pr:%20finalized%20:+1:","name":"pr: finalized :+1:","color":"45b707","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325/commits","review_comments_url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325/comments","review_comment_url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues/325/comments","statuses_url":"https://api.github.com/repos/ubclaunchpad/inertia/statuses/e1bff5e8504bf8cdd86fba07a68671ca44067204","head":{"label":"ubclaunchpad:daemon/#307-more-webhooks","ref":"daemon/#307-more-webhooks","sha":"e1bff5e8504bf8cdd86fba07a68671ca44067204","user":{"login":"ubclaunchpad","id":12406312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDA2MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/12406312?v=4","gravatar_id":"","url":"https://api.github.com/users/ubclaunchpad","html_url":"https://github.com/ubclaunchpad","followers_url":"https://api.github.com/users/ubclaunchpad/followers","following_url":"https://api.github.com/users/ubclaunchpad/following{/other_user}","gists_url":"https://api.github.com/users/ubclaunchpad/gists{/gist_id}","starred_url":"https://api.github.com/users/ubclaunchpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubclaunchpad/subscriptions","organizations_url":"https://api.github.com/users/ubclaunchpad/orgs","repos_url":"https://api.github.com/users/ubclaunchpad/repos","events_url":"https://api.github.com/users/ubclaunchpad/events{/privacy}","received_events_url":"https://api.github.com/users/ubclaunchpad/received_events","type":"Organization","site_admin":false},"repo":{"id":112870404,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI4NzA0MDQ=","name":"inertia","full_name":"ubclaunchpad/inertia","owner":{"login":"ubclaunchpad","id":12406312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDA2MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/12406312?v=4","gravatar_id":"","url":"https://api.github.com/users/ubclaunchpad","html_url":"https://github.com/ubclaunchpad","followers_url":"https://api.github.com/users/ubclaunchpad/followers","following_url":"https://api.github.com/users/ubclaunchpad/following{/other_user}","gists_url":"https://api.github.com/users/ubclaunchpad/gists{/gist_id}","starred_url":"https://api.github.com/users/ubclaunchpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubclaunchpad/subscriptions","organizations_url":"https://api.github.com/users/ubclaunchpad/orgs","repos_url":"https://api.github.com/users/ubclaunchpad/repos","events_url":"https://api.github.com/users/ubclaunchpad/events{/privacy}","received_events_url":"https://api.github.com/users/ubclaunchpad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubclaunchpad/inertia","description":":airplane:  Effortless, self-hosted continuous deployment for small teams and projects","fork":false,"url":"https://api.github.com/repos/ubclaunchpad/inertia","forks_url":"https://api.github.com/repos/ubclaunchpad/inertia/forks","keys_url":"https://api.github.com/repos/ubclaunchpad/inertia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubclaunchpad/inertia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubclaunchpad/inertia/teams","hooks_url":"https://api.github.com/repos/ubclaunchpad/inertia/hooks","issue_events_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues/events{/number}","events_url":"https://api.github.com/repos/ubclaunchpad/inertia/events","assignees_url":"https://api.github.com/repos/ubclaunchpad/inertia/assignees{/user}","branches_url":"https://api.github.com/repos/ubclaunchpad/inertia/branches{/branch}","tags_url":"https://api.github.com/repos/ubclaunchpad/inertia/tags","blobs_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubclaunchpad/inertia/statuses/{sha}","languages_url":"https://api.github.com/repos/ubclaunchpad/inertia/languages","stargazers_url":"https://api.github.com/repos/ubclaunchpad/inertia/stargazers","contributors_url":"https://api.github.com/repos/ubclaunchpad/inertia/contributors","subscribers_url":"https://api.github.com/repos/ubclaunchpad/inertia/subscribers","subscription_url":"https://api.github.com/repos/ubclaunchpad/inertia/subscription","commits_url":"https://api.github.com/repos/ubclaunchpad/inertia/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubclaunchpad/inertia/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubclaunchpad/inertia/contents/{+path}","compare_url":"https://api.github.com/repos/ubclaunchpad/inertia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubclaunchpad/inertia/merges","archive_url":"https://api.github.com/repos/ubclaunchpad/inertia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubclaunchpad/inertia/downloads","issues_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues{/number}","pulls_url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls{/number}","milestones_url":"https://api.github.com/repos/ubclaunchpad/inertia/milestones{/number}","notifications_url":"https://api.github.com/repos/ubclaunchpad/inertia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubclaunchpad/inertia/labels{/name}","releases_url":"https://api.github.com/repos/ubclaunchpad/inertia/releases{/id}","deployments_url":"https://api.github.com/repos/ubclaunchpad/inertia/deployments","created_at":"2017-12-02T19:26:10Z","updated_at":"2018-07-22T02:13:41Z","pushed_at":"2018-07-22T22:58:03Z","git_url":"git://github.com/ubclaunchpad/inertia.git","ssh_url":"git@github.com:ubclaunchpad/inertia.git","clone_url":"https://github.com/ubclaunchpad/inertia.git","svn_url":"https://github.com/ubclaunchpad/inertia","homepage":"https://medium.com/ubc-launch-pad-software-engineering-blog/building-continuous-deployment-87a2bd8eedbe","size":21469,"stargazers_count":57,"watchers_count":57,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":65,"watchers":57,"default_branch":"master"}},"base":{"label":"ubclaunchpad:master","ref":"master","sha":"56e21badc2704e971b53e1d53ed255bd76aaf554","user":{"login":"ubclaunchpad","id":12406312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDA2MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/12406312?v=4","gravatar_id":"","url":"https://api.github.com/users/ubclaunchpad","html_url":"https://github.com/ubclaunchpad","followers_url":"https://api.github.com/users/ubclaunchpad/followers","following_url":"https://api.github.com/users/ubclaunchpad/following{/other_user}","gists_url":"https://api.github.com/users/ubclaunchpad/gists{/gist_id}","starred_url":"https://api.github.com/users/ubclaunchpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubclaunchpad/subscriptions","organizations_url":"https://api.github.com/users/ubclaunchpad/orgs","repos_url":"https://api.github.com/users/ubclaunchpad/repos","events_url":"https://api.github.com/users/ubclaunchpad/events{/privacy}","received_events_url":"https://api.github.com/users/ubclaunchpad/received_events","type":"Organization","site_admin":false},"repo":{"id":112870404,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI4NzA0MDQ=","name":"inertia","full_name":"ubclaunchpad/inertia","owner":{"login":"ubclaunchpad","id":12406312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDA2MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/12406312?v=4","gravatar_id":"","url":"https://api.github.com/users/ubclaunchpad","html_url":"https://github.com/ubclaunchpad","followers_url":"https://api.github.com/users/ubclaunchpad/followers","following_url":"https://api.github.com/users/ubclaunchpad/following{/other_user}","gists_url":"https://api.github.com/users/ubclaunchpad/gists{/gist_id}","starred_url":"https://api.github.com/users/ubclaunchpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubclaunchpad/subscriptions","organizations_url":"https://api.github.com/users/ubclaunchpad/orgs","repos_url":"https://api.github.com/users/ubclaunchpad/repos","events_url":"https://api.github.com/users/ubclaunchpad/events{/privacy}","received_events_url":"https://api.github.com/users/ubclaunchpad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubclaunchpad/inertia","description":":airplane:  Effortless, self-hosted continuous deployment for small teams and projects","fork":false,"url":"https://api.github.com/repos/ubclaunchpad/inertia","forks_url":"https://api.github.com/repos/ubclaunchpad/inertia/forks","keys_url":"https://api.github.com/repos/ubclaunchpad/inertia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubclaunchpad/inertia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubclaunchpad/inertia/teams","hooks_url":"https://api.github.com/repos/ubclaunchpad/inertia/hooks","issue_events_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues/events{/number}","events_url":"https://api.github.com/repos/ubclaunchpad/inertia/events","assignees_url":"https://api.github.com/repos/ubclaunchpad/inertia/assignees{/user}","branches_url":"https://api.github.com/repos/ubclaunchpad/inertia/branches{/branch}","tags_url":"https://api.github.com/repos/ubclaunchpad/inertia/tags","blobs_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubclaunchpad/inertia/statuses/{sha}","languages_url":"https://api.github.com/repos/ubclaunchpad/inertia/languages","stargazers_url":"https://api.github.com/repos/ubclaunchpad/inertia/stargazers","contributors_url":"https://api.github.com/repos/ubclaunchpad/inertia/contributors","subscribers_url":"https://api.github.com/repos/ubclaunchpad/inertia/subscribers","subscription_url":"https://api.github.com/repos/ubclaunchpad/inertia/subscription","commits_url":"https://api.github.com/repos/ubclaunchpad/inertia/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubclaunchpad/inertia/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubclaunchpad/inertia/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubclaunchpad/inertia/contents/{+path}","compare_url":"https://api.github.com/repos/ubclaunchpad/inertia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubclaunchpad/inertia/merges","archive_url":"https://api.github.com/repos/ubclaunchpad/inertia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubclaunchpad/inertia/downloads","issues_url":"https://api.github.com/repos/ubclaunchpad/inertia/issues{/number}","pulls_url":"https://api.github.com/repos/ubclaunchpad/inertia/pulls{/number}","milestones_url":"https://api.github.com/repos/ubclaunchpad/inertia/milestones{/number}","notifications_url":"https://api.github.com/repos/ubclaunchpad/inertia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubclaunchpad/inertia/labels{/name}","releases_url":"https://api.github.com/repos/ubclaunchpad/inertia/releases{/id}","deployments_url":"https://api.github.com/repos/ubclaunchpad/inertia/deployments","created_at":"2017-12-02T19:26:10Z","updated_at":"2018-07-22T02:13:41Z","pushed_at":"2018-07-22T22:58:03Z","git_url":"git://github.com/ubclaunchpad/inertia.git","ssh_url":"git@github.com:ubclaunchpad/inertia.git","clone_url":"https://github.com/ubclaunchpad/inertia.git","svn_url":"https://github.com/ubclaunchpad/inertia","homepage":"https://medium.com/ubc-launch-pad-software-engineering-blog/building-continuous-deployment-87a2bd8eedbe","size":21469,"stargazers_count":57,"watchers_count":57,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":65,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325"},"html":{"href":"https://github.com/ubclaunchpad/inertia/pull/325"},"issue":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/issues/325"},"comments":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/ubclaunchpad/inertia/statuses/e1bff5e8504bf8cdd86fba07a68671ca44067204"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bobheadxi"}}