From 755ca9ff47fabb7abe16f45530afbb3eea280605 Mon Sep 17 00:00:00 2001 From: Aviad Reich Date: Mon, 8 Jan 2018 17:09:16 +0200 Subject: [PATCH] feat: add the ability to query bitbucket-server for open prs by branch --- 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 c7f89f86b..11ffe9ff7 100644 --- a/client-templates/bitbucket-server/accept.json.sample +++ b/client-templates/bitbucket-server/accept.json.sample @@ -116,6 +116,12 @@ "method": "POST", "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}" + }, + { + "//": "used to query for open pull requests by branch", + "method": "GET", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}" } ] }