I am trying to get the list of open pull requests created from a branch.
I followed the syntax from REST API Documentation but i am getting all pull requests from repo.
curl -vvv -H "Authorization: Bearer $API_TOKEN" -X GET https://code.server.com/stash/rest/api/1.0/projects/MAPPS/repos/ios-app/pull-requests?direction=outgoing&at=refs/heads/CI/Update-version-in-develop
Expecting Result: Open pull Requests from the branch "CI/Update-version-in-develop" to develop. Usually we are create pull request to develop branch only.
The goal is if pull requests present, delete them and branch CI/Update-version-in-develop.
But getting response like all the open pull requests in the repo.
just added the double quotes " curl url. and got the response with pull requests that are open from source branch.
curl -vvv -H "Authorization: Bearer $API_TOKEN" -X GET "https://code.server.com/stash/rest/api/1.0/projects/MAPPS/repos/ios-app/pull-requests?direction=outgoing&at=refs/heads/CI/Update-version-in-develop"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.