{"action":"created","comment":{"url":"https://api.github.com/repos/pinpt/agent/pulls/comments/230351025","pull_request_review_id":171072037,"id":230351025,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDM1MTAyNQ==","diff_hunk":"@@ -0,0 +1,148 @@\n+package bitbucket\n+\n+import (\n+\t\"context\"\n+\t\"fmt\"\n+\t\"math\"\n+\t\"path/filepath\"\n+\t\"reflect\"\n+\t\"regexp\"\n+\t\"runtime\"\n+\t\"sync\"\n+\n+\t\"github.com/pinpt/agent/integrations/bitbucket/api\"\n+\t\"github.com/pinpt/agent/pkg/integration\"\n+\t\"github.com/pinpt/go-common/log\"\n+)\n+\n+const integrationName = \"bitbucket\"\n+\n+// Integration is the Bitbucket integration\n+type Integration struct {\n+}\n+\n+// Name is the integration key found in the configuration\n+func (i *Integration) Name() string {\n+\treturn integrationName\n+}\n+\n+// Description is the short description of the integration\n+func (i *Integration) Description() string {\n+\treturn \"The Bitbucket integration for connecting to Bitbucket API\"\n+}\n+\n+// Configuration returns the configuration details for this integration\n+func (i *Integration) Configuration() []*integration.ConfigKeyValue {\n+\treturn []*integration.ConfigKeyValue{\n+\t\t&integration.ConfigKeyValue{\n+\t\t\tName:        \"url\",\n+\t\t\tDescription: \"URL to the Bitbucket API\",\n+\t\t\tRequired:    false,\n+\t\t\tExportable:  true,\n+\t\t\tDefault:     \"https://bitbucket.org\",\n+\t\t\tType:        reflect.TypeOf(\"string\"),\n+\t\t\tValidator:   integration.NewURLValidator(),\n+\t\t},\n+\t\t&integration.ConfigKeyValue{\n+\t\t\tName:        \"username\",\n+\t\t\tDescription: \"Username to access your Bitbucket account\",\n+\t\t\tRequired:    true,\n+\t\t\tExportable:  true,\n+\t\t\tDefault:     \"example-username\",","path":"integrations/bitbucket/bitbucket.go","position":51,"original_position":51,"commit_id":"78c8e777e676bd266ffa52c1b4045c19f6eb425e","original_commit_id":"78c8e777e676bd266ffa52c1b4045c19f6eb425e","user":{"login":"jhaynie","id":6027,"node_id":"MDQ6VXNlcjYwMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/6027?v=4","gravatar_id":"","url":"https://api.github.com/users/jhaynie","html_url":"https://github.com/jhaynie","followers_url":"https://api.github.com/users/jhaynie/followers","following_url":"https://api.github.com/users/jhaynie/following{/other_user}","gists_url":"https://api.github.com/users/jhaynie/gists{/gist_id}","starred_url":"https://api.github.com/users/jhaynie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhaynie/subscriptions","organizations_url":"https://api.github.com/users/jhaynie/orgs","repos_url":"https://api.github.com/users/jhaynie/repos","events_url":"https://api.github.com/users/jhaynie/events{/privacy}","received_events_url":"https://api.github.com/users/jhaynie/received_events","type":"User","site_admin":false},"body":"remove default for username and password since those can't be used as default and it will work.","created_at":"2018-11-02T12:01:11Z","updated_at":"2018-11-02T12:04:59Z","html_url":"https://github.com/pinpt/agent/pull/62#discussion_r230351025","pull_request_url":"https://api.github.com/repos/pinpt/agent/pulls/62","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/pinpt/agent/pulls/comments/230351025"},"html":{"href":"https://github.com/pinpt/agent/pull/62#discussion_r230351025"},"pull_request":{"href":"https://api.github.com/repos/pinpt/agent/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/pinpt/agent/pulls/62","id":227850835,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODUwODM1","html_url":"https://github.com/pinpt/agent/pull/62","diff_url":"https://github.com/pinpt/agent/pull/62.diff","patch_url":"https://github.com/pinpt/agent/pull/62.patch","issue_url":"https://api.github.com/repos/pinpt/agent/issues/62","number":62,"state":"open","locked":false,"title":"BE-993 Bitbucket integration","user":{"login":"josecordaz","id":3892786,"node_id":"MDQ6VXNlcjM4OTI3ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/3892786?v=4","gravatar_id":"","url":"https://api.github.com/users/josecordaz","html_url":"https://github.com/josecordaz","followers_url":"https://api.github.com/users/josecordaz/followers","following_url":"https://api.github.com/users/josecordaz/following{/other_user}","gists_url":"https://api.github.com/users/josecordaz/gists{/gist_id}","starred_url":"https://api.github.com/users/josecordaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josecordaz/subscriptions","organizations_url":"https://api.github.com/users/josecordaz/orgs","repos_url":"https://api.github.com/users/josecordaz/repos","events_url":"https://api.github.com/users/josecordaz/events{/privacy}","received_events_url":"https://api.github.com/users/josecordaz/received_events","type":"User","site_admin":false},"body":"**Description:**\r\n\r\nBitbucket integration:\r\n\r\n- setup\r\n- validate\r\n- export\r\n- onboard","created_at":"2018-11-02T07:17:11Z","updated_at":"2018-11-02T12:04:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bee6dbf129ba4f9dfa6b08c1723c206436d556dc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pec1985","id":340218,"node_id":"MDQ6VXNlcjM0MDIxOA==","avatar_url":"https://avatars1.githubusercontent.com/u/340218?v=4","gravatar_id":"","url":"https://api.github.com/users/pec1985","html_url":"https://github.com/pec1985","followers_url":"https://api.github.com/users/pec1985/followers","following_url":"https://api.github.com/users/pec1985/following{/other_user}","gists_url":"https://api.github.com/users/pec1985/gists{/gist_id}","starred_url":"https://api.github.com/users/pec1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pec1985/subscriptions","organizations_url":"https://api.github.com/users/pec1985/orgs","repos_url":"https://api.github.com/users/pec1985/repos","events_url":"https://api.github.com/users/pec1985/events{/privacy}","received_events_url":"https://api.github.com/users/pec1985/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pinpt/agent/pulls/62/commits","review_comments_url":"https://api.github.com/repos/pinpt/agent/pulls/62/comments","review_comment_url":"https://api.github.com/repos/pinpt/agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pinpt/agent/issues/62/comments","statuses_url":"https://api.github.com/repos/pinpt/agent/statuses/78c8e777e676bd266ffa52c1b4045c19f6eb425e","head":{"label":"pinpt:BE-993","ref":"BE-993","sha":"78c8e777e676bd266ffa52c1b4045c19f6eb425e","user":{"login":"pinpt","id":24400526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwNTI2","avatar_url":"https://avatars3.githubusercontent.com/u/24400526?v=4","gravatar_id":"","url":"https://api.github.com/users/pinpt","html_url":"https://github.com/pinpt","followers_url":"https://api.github.com/users/pinpt/followers","following_url":"https://api.github.com/users/pinpt/following{/other_user}","gists_url":"https://api.github.com/users/pinpt/gists{/gist_id}","starred_url":"https://api.github.com/users/pinpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinpt/subscriptions","organizations_url":"https://api.github.com/users/pinpt/orgs","repos_url":"https://api.github.com/users/pinpt/repos","events_url":"https://api.github.com/users/pinpt/events{/privacy}","received_events_url":"https://api.github.com/users/pinpt/received_events","type":"Organization","site_admin":false},"repo":{"id":139299807,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkyOTk4MDc=","name":"agent","full_name":"pinpt/agent","private":false,"owner":{"login":"pinpt","id":24400526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwNTI2","avatar_url":"https://avatars3.githubusercontent.com/u/24400526?v=4","gravatar_id":"","url":"https://api.github.com/users/pinpt","html_url":"https://github.com/pinpt","followers_url":"https://api.github.com/users/pinpt/followers","following_url":"https://api.github.com/users/pinpt/following{/other_user}","gists_url":"https://api.github.com/users/pinpt/gists{/gist_id}","starred_url":"https://api.github.com/users/pinpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinpt/subscriptions","organizations_url":"https://api.github.com/users/pinpt/orgs","repos_url":"https://api.github.com/users/pinpt/repos","events_url":"https://api.github.com/users/pinpt/events{/privacy}","received_events_url":"https://api.github.com/users/pinpt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pinpt/agent","description":"Agent is the software that runs on customer-premise to collect and deliver performance details to the Pinpoint Cloud","fork":false,"url":"https://api.github.com/repos/pinpt/agent","forks_url":"https://api.github.com/repos/pinpt/agent/forks","keys_url":"https://api.github.com/repos/pinpt/agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pinpt/agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pinpt/agent/teams","hooks_url":"https://api.github.com/repos/pinpt/agent/hooks","issue_events_url":"https://api.github.com/repos/pinpt/agent/issues/events{/number}","events_url":"https://api.github.com/repos/pinpt/agent/events","assignees_url":"https://api.github.com/repos/pinpt/agent/assignees{/user}","branches_url":"https://api.github.com/repos/pinpt/agent/branches{/branch}","tags_url":"https://api.github.com/repos/pinpt/agent/tags","blobs_url":"https://api.github.com/repos/pinpt/agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pinpt/agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pinpt/agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/pinpt/agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pinpt/agent/statuses/{sha}","languages_url":"https://api.github.com/repos/pinpt/agent/languages","stargazers_url":"https://api.github.com/repos/pinpt/agent/stargazers","contributors_url":"https://api.github.com/repos/pinpt/agent/contributors","subscribers_url":"https://api.github.com/repos/pinpt/agent/subscribers","subscription_url":"https://api.github.com/repos/pinpt/agent/subscription","commits_url":"https://api.github.com/repos/pinpt/agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/pinpt/agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/pinpt/agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/pinpt/agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/pinpt/agent/contents/{+path}","compare_url":"https://api.github.com/repos/pinpt/agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pinpt/agent/merges","archive_url":"https://api.github.com/repos/pinpt/agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pinpt/agent/downloads","issues_url":"https://api.github.com/repos/pinpt/agent/issues{/number}","pulls_url":"https://api.github.com/repos/pinpt/agent/pulls{/number}","milestones_url":"https://api.github.com/repos/pinpt/agent/milestones{/number}","notifications_url":"https://api.github.com/repos/pinpt/agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pinpt/agent/labels{/name}","releases_url":"https://api.github.com/repos/pinpt/agent/releases{/id}","deployments_url":"https://api.github.com/repos/pinpt/agent/deployments","created_at":"2018-07-01T04:18:53Z","updated_at":"2018-11-01T22:31:52Z","pushed_at":"2018-11-02T07:48:53Z","git_url":"git://github.com/pinpt/agent.git","ssh_url":"git@github.com:pinpt/agent.git","clone_url":"https://github.com/pinpt/agent.git","svn_url":"https://github.com/pinpt/agent","homepage":"https://install.pinpt.io","size":18107,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":10,"watchers":3,"default_branch":"master"}},"base":{"label":"pinpt:master","ref":"master","sha":"a54b8d0f29b48c48e5fa31e18d8e5583cd6eedc6","user":{"login":"pinpt","id":24400526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwNTI2","avatar_url":"https://avatars3.githubusercontent.com/u/24400526?v=4","gravatar_id":"","url":"https://api.github.com/users/pinpt","html_url":"https://github.com/pinpt","followers_url":"https://api.github.com/users/pinpt/followers","following_url":"https://api.github.com/users/pinpt/following{/other_user}","gists_url":"https://api.github.com/users/pinpt/gists{/gist_id}","starred_url":"https://api.github.com/users/pinpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinpt/subscriptions","organizations_url":"https://api.github.com/users/pinpt/orgs","repos_url":"https://api.github.com/users/pinpt/repos","events_url":"https://api.github.com/users/pinpt/events{/privacy}","received_events_url":"https://api.github.com/users/pinpt/received_events","type":"Organization","site_admin":false},"repo":{"id":139299807,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkyOTk4MDc=","name":"agent","full_name":"pinpt/agent","private":false,"owner":{"login":"pinpt","id":24400526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwNTI2","avatar_url":"https://avatars3.githubusercontent.com/u/24400526?v=4","gravatar_id":"","url":"https://api.github.com/users/pinpt","html_url":"https://github.com/pinpt","followers_url":"https://api.github.com/users/pinpt/followers","following_url":"https://api.github.com/users/pinpt/following{/other_user}","gists_url":"https://api.github.com/users/pinpt/gists{/gist_id}","starred_url":"https://api.github.com/users/pinpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinpt/subscriptions","organizations_url":"https://api.github.com/users/pinpt/orgs","repos_url":"https://api.github.com/users/pinpt/repos","events_url":"https://api.github.com/users/pinpt/events{/privacy}","received_events_url":"https://api.github.com/users/pinpt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pinpt/agent","description":"Agent is the software that runs on customer-premise to collect and deliver performance details to the Pinpoint Cloud","fork":false,"url":"https://api.github.com/repos/pinpt/agent","forks_url":"https://api.github.com/repos/pinpt/agent/forks","keys_url":"https://api.github.com/repos/pinpt/agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pinpt/agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pinpt/agent/teams","hooks_url":"https://api.github.com/repos/pinpt/agent/hooks","issue_events_url":"https://api.github.com/repos/pinpt/agent/issues/events{/number}","events_url":"https://api.github.com/repos/pinpt/agent/events","assignees_url":"https://api.github.com/repos/pinpt/agent/assignees{/user}","branches_url":"https://api.github.com/repos/pinpt/agent/branches{/branch}","tags_url":"https://api.github.com/repos/pinpt/agent/tags","blobs_url":"https://api.github.com/repos/pinpt/agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pinpt/agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pinpt/agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/pinpt/agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pinpt/agent/statuses/{sha}","languages_url":"https://api.github.com/repos/pinpt/agent/languages","stargazers_url":"https://api.github.com/repos/pinpt/agent/stargazers","contributors_url":"https://api.github.com/repos/pinpt/agent/contributors","subscribers_url":"https://api.github.com/repos/pinpt/agent/subscribers","subscription_url":"https://api.github.com/repos/pinpt/agent/subscription","commits_url":"https://api.github.com/repos/pinpt/agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/pinpt/agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/pinpt/agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/pinpt/agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/pinpt/agent/contents/{+path}","compare_url":"https://api.github.com/repos/pinpt/agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pinpt/agent/merges","archive_url":"https://api.github.com/repos/pinpt/agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pinpt/agent/downloads","issues_url":"https://api.github.com/repos/pinpt/agent/issues{/number}","pulls_url":"https://api.github.com/repos/pinpt/agent/pulls{/number}","milestones_url":"https://api.github.com/repos/pinpt/agent/milestones{/number}","notifications_url":"https://api.github.com/repos/pinpt/agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pinpt/agent/labels{/name}","releases_url":"https://api.github.com/repos/pinpt/agent/releases{/id}","deployments_url":"https://api.github.com/repos/pinpt/agent/deployments","created_at":"2018-07-01T04:18:53Z","updated_at":"2018-11-01T22:31:52Z","pushed_at":"2018-11-02T07:48:53Z","git_url":"git://github.com/pinpt/agent.git","ssh_url":"git@github.com:pinpt/agent.git","clone_url":"https://github.com/pinpt/agent.git","svn_url":"https://github.com/pinpt/agent","homepage":"https://install.pinpt.io","size":18107,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pinpt/agent/pulls/62"},"html":{"href":"https://github.com/pinpt/agent/pull/62"},"issue":{"href":"https://api.github.com/repos/pinpt/agent/issues/62"},"comments":{"href":"https://api.github.com/repos/pinpt/agent/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/pinpt/agent/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/pinpt/agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pinpt/agent/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/pinpt/agent/statuses/78c8e777e676bd266ffa52c1b4045c19f6eb425e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jhaynie"}}