Skip to content

Commit

Permalink
feat: allow APIs used for creating fix pull request on bitbucket-server
Browse files Browse the repository at this point in the history
  • Loading branch information
aviadatsnyk committed Nov 29, 2017
1 parent 892136a commit 5b2f081
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
]
}

0 comments on commit 5b2f081

Please sign in to comment.