Skip to content

Commit

Permalink
Merge pull request #99 from snyk/feat/add-bitbucket-get-prs-filter
Browse files Browse the repository at this point in the history
feat: add the ability to query bitbucket-server for open prs by branch
  • Loading branch information
aviadatsnyk authored Jan 8, 2018
2 parents 456b850 + 755ca9f commit 0ab4a7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
]
}

0 comments on commit 0ab4a7f

Please sign in to comment.