From 5b2f081c32dbde48d7957a9921968d10ffaf9653 Mon Sep 17 00:00:00 2001 From: Aviad Reich Date: Wed, 29 Nov 2017 10:19:42 +0200 Subject: [PATCH] feat: allow APIs used for creating fix pull request on bitbucket-server --- .../bitbucket-server/accept.json.sample | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/client-templates/bitbucket-server/accept.json.sample b/client-templates/bitbucket-server/accept.json.sample index e1df5720a..c7f89f86b 100644 --- a/client-templates/bitbucket-server/accept.json.sample +++ b/client-templates/bitbucket-server/accept.json.sample @@ -98,6 +98,24 @@ "method": "POST", "path": "/rest/build-status/1.0/commits/:sha", "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}" + }, + { + "//": "used to create a new branch for fix PRs", + "method": "POST", + "path": "/rest/api/1.0/projects/:project/repos/:repo/branches", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}" + }, + { + "//": "used to create or update a file for fix PRs", + "method": "PUT", + "path": "/rest/api/1.0/projects/:project/repos/:repo/browse/:path", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}" + }, + { + "//": "used to create a pull request for fix PRs", + "method": "POST", + "path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests", + "origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET}" } ] }