Skip to content

Commit

Permalink
Merge pull request #111 from snyk/fix/bitbucket-server-default-branch…
Browse files Browse the repository at this point in the history
…-request

fix: allow default branch checking on bitbucket server template rules
  • Loading branch information
adrukh authored Apr 2, 2018
2 parents dd4e4b6 + e6a0f09 commit 63d3b32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests",
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}"
},
{
"//": "used to check for a repo's default branch",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/branches/default",
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}"
}
]
}

0 comments on commit 63d3b32

Please sign in to comment.