{"action":"opened","number":1333,"pull_request":{"url":"https://api.github.com/repos/drone/drone/pulls/1333","id":51277769,"html_url":"https://github.com/drone/drone/pull/1333","diff_url":"https://github.com/drone/drone/pull/1333.diff","patch_url":"https://github.com/drone/drone/pull/1333.patch","issue_url":"https://api.github.com/repos/drone/drone/issues/1333","number":1333,"state":"open","locked":false,"title":"Adding Bitbucket tag push hook support.","user":{"login":"gtaylor","id":75556,"avatar_url":"https://avatars.githubusercontent.com/u/75556?v=3","gravatar_id":"","url":"https://api.github.com/users/gtaylor","html_url":"https://github.com/gtaylor","followers_url":"https://api.github.com/users/gtaylor/followers","following_url":"https://api.github.com/users/gtaylor/following{/other_user}","gists_url":"https://api.github.com/users/gtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/gtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtaylor/subscriptions","organizations_url":"https://api.github.com/users/gtaylor/orgs","repos_url":"https://api.github.com/users/gtaylor/repos","events_url":"https://api.github.com/users/gtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/gtaylor/received_events","type":"User","site_admin":false},"body":"Some of this may belong in helper.go (or even somewhere else), I just wasn't sure how you wanted to break it up. Let me know if you'd like me to move the logic.\r\n\r\nThis is enough to enable people to build images on Drone and push to a remote Docker Image repo on Bitbucket.","created_at":"2015-11-19T20:42:05Z","updated_at":"2015-11-19T20:42:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drone/drone/pulls/1333/commits","review_comments_url":"https://api.github.com/repos/drone/drone/pulls/1333/comments","review_comment_url":"https://api.github.com/repos/drone/drone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drone/drone/issues/1333/comments","statuses_url":"https://api.github.com/repos/drone/drone/statuses/d4fb58d2e684ac3e546c83480b91c05cfe6bc4d9","head":{"label":"gtaylor:bitbucket_tag_hook","ref":"bitbucket_tag_hook","sha":"d4fb58d2e684ac3e546c83480b91c05cfe6bc4d9","user":{"login":"gtaylor","id":75556,"avatar_url":"https://avatars.githubusercontent.com/u/75556?v=3","gravatar_id":"","url":"https://api.github.com/users/gtaylor","html_url":"https://github.com/gtaylor","followers_url":"https://api.github.com/users/gtaylor/followers","following_url":"https://api.github.com/users/gtaylor/following{/other_user}","gists_url":"https://api.github.com/users/gtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/gtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtaylor/subscriptions","organizations_url":"https://api.github.com/users/gtaylor/orgs","repos_url":"https://api.github.com/users/gtaylor/repos","events_url":"https://api.github.com/users/gtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/gtaylor/received_events","type":"User","site_admin":false},"repo":{"id":44999078,"name":"drone","full_name":"gtaylor/drone","owner":{"login":"gtaylor","id":75556,"avatar_url":"https://avatars.githubusercontent.com/u/75556?v=3","gravatar_id":"","url":"https://api.github.com/users/gtaylor","html_url":"https://github.com/gtaylor","followers_url":"https://api.github.com/users/gtaylor/followers","following_url":"https://api.github.com/users/gtaylor/following{/other_user}","gists_url":"https://api.github.com/users/gtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/gtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtaylor/subscriptions","organizations_url":"https://api.github.com/users/gtaylor/orgs","repos_url":"https://api.github.com/users/gtaylor/repos","events_url":"https://api.github.com/users/gtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/gtaylor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gtaylor/drone","description":"Drone is a Continuous Integration platform built on Docker, written in Go","fork":true,"url":"https://api.github.com/repos/gtaylor/drone","forks_url":"https://api.github.com/repos/gtaylor/drone/forks","keys_url":"https://api.github.com/repos/gtaylor/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtaylor/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtaylor/drone/teams","hooks_url":"https://api.github.com/repos/gtaylor/drone/hooks","issue_events_url":"https://api.github.com/repos/gtaylor/drone/issues/events{/number}","events_url":"https://api.github.com/repos/gtaylor/drone/events","assignees_url":"https://api.github.com/repos/gtaylor/drone/assignees{/user}","branches_url":"https://api.github.com/repos/gtaylor/drone/branches{/branch}","tags_url":"https://api.github.com/repos/gtaylor/drone/tags","blobs_url":"https://api.github.com/repos/gtaylor/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtaylor/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtaylor/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtaylor/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtaylor/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/gtaylor/drone/languages","stargazers_url":"https://api.github.com/repos/gtaylor/drone/stargazers","contributors_url":"https://api.github.com/repos/gtaylor/drone/contributors","subscribers_url":"https://api.github.com/repos/gtaylor/drone/subscribers","subscription_url":"https://api.github.com/repos/gtaylor/drone/subscription","commits_url":"https://api.github.com/repos/gtaylor/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtaylor/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtaylor/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtaylor/drone/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtaylor/drone/contents/{+path}","compare_url":"https://api.github.com/repos/gtaylor/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtaylor/drone/merges","archive_url":"https://api.github.com/repos/gtaylor/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtaylor/drone/downloads","issues_url":"https://api.github.com/repos/gtaylor/drone/issues{/number}","pulls_url":"https://api.github.com/repos/gtaylor/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/gtaylor/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/gtaylor/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtaylor/drone/labels{/name}","releases_url":"https://api.github.com/repos/gtaylor/drone/releases{/id}","created_at":"2015-10-26T21:40:59Z","updated_at":"2015-10-26T21:41:01Z","pushed_at":"2015-11-19T20:39:55Z","git_url":"git://github.com/gtaylor/drone.git","ssh_url":"git@github.com:gtaylor/drone.git","clone_url":"https://github.com/gtaylor/drone.git","svn_url":"https://github.com/gtaylor/drone","homepage":"","size":18448,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"drone:master","ref":"master","sha":"8c5354c9481a59e0a06ee55ba10ee16a59badb3d","user":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"repo":{"id":16607898,"name":"drone","full_name":"drone/drone","owner":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drone/drone","description":"Drone is a Continuous Integration platform built on Docker, written in Go","fork":false,"url":"https://api.github.com/repos/drone/drone","forks_url":"https://api.github.com/repos/drone/drone/forks","keys_url":"https://api.github.com/repos/drone/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drone/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drone/drone/teams","hooks_url":"https://api.github.com/repos/drone/drone/hooks","issue_events_url":"https://api.github.com/repos/drone/drone/issues/events{/number}","events_url":"https://api.github.com/repos/drone/drone/events","assignees_url":"https://api.github.com/repos/drone/drone/assignees{/user}","branches_url":"https://api.github.com/repos/drone/drone/branches{/branch}","tags_url":"https://api.github.com/repos/drone/drone/tags","blobs_url":"https://api.github.com/repos/drone/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drone/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drone/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/drone/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drone/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/drone/drone/languages","stargazers_url":"https://api.github.com/repos/drone/drone/stargazers","contributors_url":"https://api.github.com/repos/drone/drone/contributors","subscribers_url":"https://api.github.com/repos/drone/drone/subscribers","subscription_url":"https://api.github.com/repos/drone/drone/subscription","commits_url":"https://api.github.com/repos/drone/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/drone/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/drone/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/drone/drone/issues/comments{/number}","contents_url":"https://api.github.com/repos/drone/drone/contents/{+path}","compare_url":"https://api.github.com/repos/drone/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drone/drone/merges","archive_url":"https://api.github.com/repos/drone/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drone/drone/downloads","issues_url":"https://api.github.com/repos/drone/drone/issues{/number}","pulls_url":"https://api.github.com/repos/drone/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/drone/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/drone/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drone/drone/labels{/name}","releases_url":"https://api.github.com/repos/drone/drone/releases{/id}","created_at":"2014-02-07T07:54:44Z","updated_at":"2015-11-19T15:33:19Z","pushed_at":"2015-11-19T20:42:05Z","git_url":"git://github.com/drone/drone.git","ssh_url":"git@github.com:drone/drone.git","clone_url":"https://github.com/drone/drone.git","svn_url":"https://github.com/drone/drone","homepage":"","size":27078,"stargazers_count":5700,"watchers_count":5700,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":650,"mirror_url":null,"open_issues_count":123,"forks":650,"open_issues":123,"watchers":5700,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drone/drone/pulls/1333"},"html":{"href":"https://github.com/drone/drone/pull/1333"},"issue":{"href":"https://api.github.com/repos/drone/drone/issues/1333"},"comments":{"href":"https://api.github.com/repos/drone/drone/issues/1333/comments"},"review_comments":{"href":"https://api.github.com/repos/drone/drone/pulls/1333/comments"},"review_comment":{"href":"https://api.github.com/repos/drone/drone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drone/drone/pulls/1333/commits"},"statuses":{"href":"https://api.github.com/repos/drone/drone/statuses/d4fb58d2e684ac3e546c83480b91c05cfe6bc4d9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":4,"changed_files":1}}