{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/comments/124219473","pull_request_review_id":46487865,"id":124219473,"diff_hunk":"@@ -0,0 +1,272 @@\n+/*\n+ * The MIT License\n+ *\n+ * Copyright (c) 2017, CloudBees, Inc.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+package com.cloudbees.jenkins.plugins.bitbucket;\n+\n+import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketApi;\n+import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketHref;\n+import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository;\n+import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepositoryProtocol;\n+import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepositoryType;\n+import com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient;\n+import com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint;\n+import com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketEndpointConfiguration;\n+import com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketServerEndpoint;\n+import com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey;\n+import com.cloudbees.plugins.credentials.Credentials;\n+import com.cloudbees.plugins.credentials.common.IdCredentials;\n+import com.cloudbees.plugins.credentials.common.StandardCredentials;\n+import edu.umd.cs.findbugs.annotations.CheckForNull;\n+import edu.umd.cs.findbugs.annotations.NonNull;\n+import hudson.Util;\n+import hudson.plugins.git.GitSCM;\n+import hudson.plugins.git.browser.BitbucketWeb;\n+import java.net.URI;\n+import java.net.URISyntaxException;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.List;\n+import jenkins.plugins.git.AbstractGitSCMSource;\n+import jenkins.plugins.git.GitSCMBuilder;\n+import jenkins.scm.api.SCMHead;\n+import jenkins.scm.api.SCMRevision;\n+import jenkins.scm.api.SCMSource;\n+import jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy;\n+import org.apache.commons.lang.StringUtils;\n+\n+/**\n+ * A {@link GitSCMBuilder} specialized for bitbucket.\n+ *\n+ * @since 2.2.0\n+ */\n+public class BitbucketGitSCMBuilder extends GitSCMBuilder<BitbucketGitSCMBuilder> {\n+\n+    /**\n+     * The {@link BitbucketSCMSource} who's {@link BitbucketSCMSource#getOwner()} can be used as the context for\n+     * resolving credentials.\n+     */\n+    @NonNull\n+    private final BitbucketSCMSource scmSource;\n+\n+    /**\n+     * The clone links for cloning the source repository and origin pull requests (but links will need tweaks for\n+     * fork pull requests)\n+     */\n+    @NonNull\n+    private List<BitbucketHref> cloneLinks = Collections.emptyList();\n+\n+    /**\n+     * Constructor.\n+     *\n+     * @param scmSource     the {@link BitbucketSCMSource}.\n+     * @param head          the {@link SCMHead}\n+     * @param revision      the (optional) {@link SCMRevision}\n+     * @param credentialsId The {@link IdCredentials#getId()} of the {@link Credentials} to use when connecting to\n+     *                      the {@link #remote()} or {@code null} to let the git client choose between providing its own\n+     *                      credentials or connecting anonymously.\n+     */\n+    public BitbucketGitSCMBuilder(@NonNull BitbucketSCMSource scmSource, @NonNull SCMHead head,\n+                                  @CheckForNull SCMRevision revision, @CheckForNull String credentialsId) {\n+        // we provide a dummy repository URL to the super constructor and then fix is afterwards once we have\n+        // the clone links\n+        super(head, revision, /*dummy value*/scmSource.getServerUrl(), credentialsId);\n+        withoutRefSpecs();\n+        if (head instanceof PullRequestSCMHead) {\n+            if (scmSource.buildBitbucketClient() instanceof BitbucketCloudApiClient) {\n+                // TODO fix once Bitbucket Cloud has a fix for https://bitbucket.org/site/master/issues/5814\n+                String branchName = ((PullRequestSCMHead) head).getBranchName();\n+                withRefSpec(\"+refs/heads/\" + branchName + \":refs/remotes/@{remote}/\" + head.getName());\n+            } else {\n+                String pullId = ((PullRequestSCMHead) head).getId();\n+                withRefSpec(\"+refs/pull-requests/\" + pullId + \"/from:refs/remotes/@{remote}/\" + head.getName());","path":"src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketGitSCMBuilder.java","position":101,"original_position":101,"commit_id":"6f9a49f0b9471b2375d35715a6693f616d98cd64","original_commit_id":"e0e18b24bfe1c115465a9edd46d255f2718ade7e","user":{"login":"stephenc","id":209336,"avatar_url":"https://avatars1.githubusercontent.com/u/209336?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenc","html_url":"https://github.com/stephenc","followers_url":"https://api.github.com/users/stephenc/followers","following_url":"https://api.github.com/users/stephenc/following{/other_user}","gists_url":"https://api.github.com/users/stephenc/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenc/subscriptions","organizations_url":"https://api.github.com/users/stephenc/orgs","repos_url":"https://api.github.com/users/stephenc/repos","events_url":"https://api.github.com/users/stephenc/events{/privacy}","received_events_url":"https://api.github.com/users/stephenc/received_events","type":"User","site_admin":false},"body":"@HRMPW @amuniz @pascallap WDYT?\r\n\r\n@erikvanzijst have you any thoughts on this given that it is also relevant to https://bitbucket.org/site/master/issues/5814/reify-pull-requests-by-making-them-a-ref","created_at":"2017-06-27T09:08:20Z","updated_at":"2017-06-27T09:08:21Z","html_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/53#discussion_r124219473","pull_request_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/comments/124219473"},"html":{"href":"https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/53#discussion_r124219473"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53","id":125159991,"html_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/53","diff_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/53.diff","patch_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/53.patch","issue_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues/53","number":53,"state":"open","locked":false,"title":"[JENKINS-43507] Migrate Bitbucket Plugin to Traits","user":{"login":"stephenc","id":209336,"avatar_url":"https://avatars1.githubusercontent.com/u/209336?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenc","html_url":"https://github.com/stephenc","followers_url":"https://api.github.com/users/stephenc/followers","following_url":"https://api.github.com/users/stephenc/following{/other_user}","gists_url":"https://api.github.com/users/stephenc/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenc/subscriptions","organizations_url":"https://api.github.com/users/stephenc/orgs","repos_url":"https://api.github.com/users/stephenc/repos","events_url":"https://api.github.com/users/stephenc/events{/privacy}","received_events_url":"https://api.github.com/users/stephenc/received_events","type":"User","site_admin":false},"body":"See [JENKINS-43507](https://issues.jenkins-ci.org/browse/JENKINS-43507)\r\n\r\nDownstream of: \r\n\r\n* https://github.com/jenkinsci/scm-api-plugin/pull/36\r\n* https://github.com/jenkinsci/branch-api-plugin/pull/104\r\n* https://github.com/jenkinsci/git-plugin/pull/494\r\n* https://github.com/jenkinsci/mercurial-plugin/pull/103\r\n\r\nWill not be merged until after equivalent changes to GitHub plugin have been pushed to a pull-request\r\n\r\n@reviewbybees\r\n\r\n\r\nP.S. I have tried to be as careful as possible making the changes step by step in order to ensure that the behaviour of the code being refactored remains unmodified for anyone upgrading from an existing configuration from older versions of the plugin. Unfortunately this required a large diff of changes in the end. If it is any consolation to reviewers, I will also be re-reviewing all this code before I am happy to merge... yes it is a 12k LOC pull request","created_at":"2017-06-12T15:10:52Z","updated_at":"2017-06-27T09:08:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fd8d0165a38241f858804e04307ac962046e955","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues/53/comments","statuses_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/statuses/6f9a49f0b9471b2375d35715a6693f616d98cd64","head":{"label":"stephenc:jenkins-43507","ref":"jenkins-43507","sha":"6f9a49f0b9471b2375d35715a6693f616d98cd64","user":{"login":"stephenc","id":209336,"avatar_url":"https://avatars1.githubusercontent.com/u/209336?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenc","html_url":"https://github.com/stephenc","followers_url":"https://api.github.com/users/stephenc/followers","following_url":"https://api.github.com/users/stephenc/following{/other_user}","gists_url":"https://api.github.com/users/stephenc/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenc/subscriptions","organizations_url":"https://api.github.com/users/stephenc/orgs","repos_url":"https://api.github.com/users/stephenc/repos","events_url":"https://api.github.com/users/stephenc/events{/privacy}","received_events_url":"https://api.github.com/users/stephenc/received_events","type":"User","site_admin":false},"repo":{"id":72225187,"name":"bitbucket-branch-source-plugin","full_name":"stephenc/bitbucket-branch-source-plugin","owner":{"login":"stephenc","id":209336,"avatar_url":"https://avatars1.githubusercontent.com/u/209336?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenc","html_url":"https://github.com/stephenc","followers_url":"https://api.github.com/users/stephenc/followers","following_url":"https://api.github.com/users/stephenc/following{/other_user}","gists_url":"https://api.github.com/users/stephenc/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenc/subscriptions","organizations_url":"https://api.github.com/users/stephenc/orgs","repos_url":"https://api.github.com/users/stephenc/repos","events_url":"https://api.github.com/users/stephenc/events{/privacy}","received_events_url":"https://api.github.com/users/stephenc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephenc/bitbucket-branch-source-plugin","description":"Bitbucket Branch Source Plugin","fork":true,"url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin","forks_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/forks","keys_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/teams","hooks_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/hooks","issue_events_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/events","assignees_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/tags","blobs_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/languages","stargazers_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/stargazers","contributors_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/contributors","subscribers_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/subscribers","subscription_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/subscription","commits_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/merges","archive_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/downloads","issues_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/labels{/name}","releases_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/stephenc/bitbucket-branch-source-plugin/deployments","created_at":"2016-10-28T16:46:18Z","updated_at":"2017-05-31T07:58:34Z","pushed_at":"2017-06-26T11:55:33Z","git_url":"git://github.com/stephenc/bitbucket-branch-source-plugin.git","ssh_url":"git@github.com:stephenc/bitbucket-branch-source-plugin.git","clone_url":"https://github.com/stephenc/bitbucket-branch-source-plugin.git","svn_url":"https://github.com/stephenc/bitbucket-branch-source-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin","size":571,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"217fc24647cd507cacd5820f1f3f4833bd2fc5ef","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars3.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":53688131,"name":"bitbucket-branch-source-plugin","full_name":"jenkinsci/bitbucket-branch-source-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars3.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin","description":"Bitbucket Branch Source Plugin","fork":true,"url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin","forks_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/deployments","created_at":"2016-03-11T18:28:58Z","updated_at":"2017-06-26T23:57:49Z","pushed_at":"2017-06-26T11:55:36Z","git_url":"git://github.com/jenkinsci/bitbucket-branch-source-plugin.git","ssh_url":"git@github.com:jenkinsci/bitbucket-branch-source-plugin.git","clone_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin.git","svn_url":"https://github.com/jenkinsci/bitbucket-branch-source-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin","size":568,"stargazers_count":45,"watchers_count":45,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":7,"forks":73,"open_issues":7,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53"},"html":{"href":"https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/53"},"issue":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues/53"},"comments":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-branch-source-plugin/statuses/6f9a49f0b9471b2375d35715a6693f616d98cd64"}}}}
{"actor":{"display_login":"stephenc"}}