Skip to content

Commit

Permalink
Merge pull request #92 from snyk/feat/allow-bitbucket-server-fix-pr-apis
Browse files Browse the repository at this point in the history
feat: allow APIs used for creating fix pull request on bitbucket-server
  • Loading branch information
Dar Malovani authored Nov 29, 2017
2 parents 892136a + 5b2f081 commit f3d5527
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 f3d5527

Please sign in to comment.