{"action":"opened","number":26,"pull_request":{"url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/26","id":89265074,"html_url":"https://github.com/bitrise-io/bitrise-webhooks/pull/26","diff_url":"https://github.com/bitrise-io/bitrise-webhooks/pull/26.diff","patch_url":"https://github.com/bitrise-io/bitrise-webhooks/pull/26.patch","issue_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/26","number":26,"state":"open","locked":false,"title":"BitBucket tag event handling","user":{"login":"viktorbenei","id":430618,"avatar_url":"https://avatars.githubusercontent.com/u/430618?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorbenei","html_url":"https://github.com/viktorbenei","followers_url":"https://api.github.com/users/viktorbenei/followers","following_url":"https://api.github.com/users/viktorbenei/following{/other_user}","gists_url":"https://api.github.com/users/viktorbenei/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorbenei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorbenei/subscriptions","organizations_url":"https://api.github.com/users/viktorbenei/orgs","repos_url":"https://api.github.com/users/viktorbenei/repos","events_url":"https://api.github.com/users/viktorbenei/events{/privacy}","received_events_url":"https://api.github.com/users/viktorbenei/received_events","type":"User","site_admin":false},"body":"### New Pull Request Checklist\r\n\r\n- [ ] Run `go fmt` on your files (e.g. `go fmt ./service/common.go`, or on the whole `service` folder: `go fmt ./service/...`)\r\n- [ ] Write tests for your code\r\n  - The tests should cover both \"success\" and \"error\" cases.\r\n  - The tests should also check **all the returned variables**, don't ignore any returned value!\r\n  - Ideally the tests should be easily readable, we usually use tests to document our code instead of code comments.\r\n    An example, if you'd write a comment like \"Given X this function will return Y\" or\r\n    \"Beware, if the input is X this function will return Y\" then you should implement this as\r\n    a unit test, instead of writing it as a comment.\r\n- [ ] If your Pull Request is more than a bug fix you should also check `README.md` and change/add the descriptions there - also\r\n  feel free to add yourself as a contributor if you implement support for a new service ;)\r\n- [ ] Before creating the Pull Request you should also run `bitrise run test` with the [Bitrise CLI](https://www.bitrise.io/cli),\r\n  to perform all the automatic checks (which will run on your Pull Request when you open it).\r\n\r\n\r\n### Summary of Pull Request\r\n\r\nBitbucket Tag push event handling\r\n\r\nchanged method names etc. to reflect that it's now a generic \"push\" event handler, which can handle both code AND tag push events","created_at":"2016-10-13T19:20:50Z","updated_at":"2016-10-13T19:20:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/26/commits","review_comments_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/26/comments","review_comment_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/26/comments","statuses_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/statuses/4229050542d26c164d1ee09c20ecb6802eec659c","head":{"label":"bitrise-io:feature/bitbucket-tag-handling","ref":"feature/bitbucket-tag-handling","sha":"4229050542d26c164d1ee09c20ecb6802eec659c","user":{"login":"bitrise-io","id":7174390,"avatar_url":"https://avatars.githubusercontent.com/u/7174390?v=3","gravatar_id":"","url":"https://api.github.com/users/bitrise-io","html_url":"https://github.com/bitrise-io","followers_url":"https://api.github.com/users/bitrise-io/followers","following_url":"https://api.github.com/users/bitrise-io/following{/other_user}","gists_url":"https://api.github.com/users/bitrise-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bitrise-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitrise-io/subscriptions","organizations_url":"https://api.github.com/users/bitrise-io/orgs","repos_url":"https://api.github.com/users/bitrise-io/repos","events_url":"https://api.github.com/users/bitrise-io/events{/privacy}","received_events_url":"https://api.github.com/users/bitrise-io/received_events","type":"Organization","site_admin":false},"repo":{"id":51008650,"name":"bitrise-webhooks","full_name":"bitrise-io/bitrise-webhooks","owner":{"login":"bitrise-io","id":7174390,"avatar_url":"https://avatars.githubusercontent.com/u/7174390?v=3","gravatar_id":"","url":"https://api.github.com/users/bitrise-io","html_url":"https://github.com/bitrise-io","followers_url":"https://api.github.com/users/bitrise-io/followers","following_url":"https://api.github.com/users/bitrise-io/following{/other_user}","gists_url":"https://api.github.com/users/bitrise-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bitrise-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitrise-io/subscriptions","organizations_url":"https://api.github.com/users/bitrise-io/orgs","repos_url":"https://api.github.com/users/bitrise-io/repos","events_url":"https://api.github.com/users/bitrise-io/events{/privacy}","received_events_url":"https://api.github.com/users/bitrise-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitrise-io/bitrise-webhooks","description":"Bitrise Webhooks processor","fork":false,"url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks","forks_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/forks","keys_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/teams","hooks_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/hooks","issue_events_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/events{/number}","events_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/events","assignees_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/assignees{/user}","branches_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/branches{/branch}","tags_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/tags","blobs_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/statuses/{sha}","languages_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/languages","stargazers_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/stargazers","contributors_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/contributors","subscribers_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/subscribers","subscription_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/subscription","commits_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/contents/{+path}","compare_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/merges","archive_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/downloads","issues_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues{/number}","pulls_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls{/number}","milestones_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/milestones{/number}","notifications_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/labels{/name}","releases_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/releases{/id}","deployments_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/deployments","created_at":"2016-02-03T15:24:26Z","updated_at":"2016-10-07T16:37:08Z","pushed_at":"2016-10-13T19:20:50Z","git_url":"git://github.com/bitrise-io/bitrise-webhooks.git","ssh_url":"git@github.com:bitrise-io/bitrise-webhooks.git","clone_url":"https://github.com/bitrise-io/bitrise-webhooks.git","svn_url":"https://github.com/bitrise-io/bitrise-webhooks","homepage":null,"size":354,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"bitrise-io:master","ref":"master","sha":"3347ef5878b127676845a3afd450f74364611f5f","user":{"login":"bitrise-io","id":7174390,"avatar_url":"https://avatars.githubusercontent.com/u/7174390?v=3","gravatar_id":"","url":"https://api.github.com/users/bitrise-io","html_url":"https://github.com/bitrise-io","followers_url":"https://api.github.com/users/bitrise-io/followers","following_url":"https://api.github.com/users/bitrise-io/following{/other_user}","gists_url":"https://api.github.com/users/bitrise-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bitrise-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitrise-io/subscriptions","organizations_url":"https://api.github.com/users/bitrise-io/orgs","repos_url":"https://api.github.com/users/bitrise-io/repos","events_url":"https://api.github.com/users/bitrise-io/events{/privacy}","received_events_url":"https://api.github.com/users/bitrise-io/received_events","type":"Organization","site_admin":false},"repo":{"id":51008650,"name":"bitrise-webhooks","full_name":"bitrise-io/bitrise-webhooks","owner":{"login":"bitrise-io","id":7174390,"avatar_url":"https://avatars.githubusercontent.com/u/7174390?v=3","gravatar_id":"","url":"https://api.github.com/users/bitrise-io","html_url":"https://github.com/bitrise-io","followers_url":"https://api.github.com/users/bitrise-io/followers","following_url":"https://api.github.com/users/bitrise-io/following{/other_user}","gists_url":"https://api.github.com/users/bitrise-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bitrise-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitrise-io/subscriptions","organizations_url":"https://api.github.com/users/bitrise-io/orgs","repos_url":"https://api.github.com/users/bitrise-io/repos","events_url":"https://api.github.com/users/bitrise-io/events{/privacy}","received_events_url":"https://api.github.com/users/bitrise-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitrise-io/bitrise-webhooks","description":"Bitrise Webhooks processor","fork":false,"url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks","forks_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/forks","keys_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/teams","hooks_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/hooks","issue_events_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/events{/number}","events_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/events","assignees_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/assignees{/user}","branches_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/branches{/branch}","tags_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/tags","blobs_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/statuses/{sha}","languages_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/languages","stargazers_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/stargazers","contributors_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/contributors","subscribers_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/subscribers","subscription_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/subscription","commits_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/contents/{+path}","compare_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/merges","archive_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/downloads","issues_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues{/number}","pulls_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls{/number}","milestones_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/milestones{/number}","notifications_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/labels{/name}","releases_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/releases{/id}","deployments_url":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/deployments","created_at":"2016-02-03T15:24:26Z","updated_at":"2016-10-07T16:37:08Z","pushed_at":"2016-10-13T19:20:50Z","git_url":"git://github.com/bitrise-io/bitrise-webhooks.git","ssh_url":"git@github.com:bitrise-io/bitrise-webhooks.git","clone_url":"https://github.com/bitrise-io/bitrise-webhooks.git","svn_url":"https://github.com/bitrise-io/bitrise-webhooks","homepage":null,"size":354,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/26"},"html":{"href":"https://github.com/bitrise-io/bitrise-webhooks/pull/26"},"issue":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/26"},"comments":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/bitrise-io/bitrise-webhooks/statuses/4229050542d26c164d1ee09c20ecb6802eec659c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":117,"deletions":44,"changed_files":2}}
{"actor":{"display_login":"viktorbenei"}}