From e6a0f09552647d168d59870b7625d3938948dd9e Mon Sep 17 00:00:00 2001 From: Anton Drukh Date: Mon, 2 Apr 2018 09:39:57 +0300 Subject: [PATCH] fix: allow default branch checking on bitbucket server template rules --- client-templates/bitbucket-server/accept.json.sample | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client-templates/bitbucket-server/accept.json.sample b/client-templates/bitbucket-server/accept.json.sample index 11ffe9ff7..badeae036 100644 --- a/client-templates/bitbucket-server/accept.json.sample +++ b/client-templates/bitbucket-server/accept.json.sample @@ -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}" } ] }