Skip to content

Commit

Permalink
fix: allow default branch checking on bitbucket server template rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Drukh committed Apr 2, 2018
1 parent dd4e4b6 commit e6a0f09
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 e6a0f09

Please sign in to comment.