-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
None
-
Location: https://developer.atlassian.com/static/rest/stash/3.1.0/stash-rest.html
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Referrer: https://www.google.com/
Screen Resolution: 2560 x 1440
Rating: Good
Documentation reads clearly. Was easy to find what I needed.
Pull request API "at" parameter did not seem to work until I looked at response output and saw that branch names are prefixed with "refs/heads/". After adding this I was able to filter by branch name. Examples:
Wrong:
stash.c42/rest/api/1.0/projects/SVR/repos/core/pull-requests?at=master
Right:
stash.c42/rest/api/1.0/projects/SVR/repos/core/pull-requests?at=refs/heads/master
Also for this pull-requests resource, it would be helpful to have other filters such as getting all pull requests by author, reviewer, date range, etc.
I also was interested in getting commits and pull requests based on code content, for the purpose of auditing, and could not find a way to do this.
Reporter: Allan Tokuda
E-mail: allan.tokuda@code42.com
- was cloned as
-
BSERV-4929 Pull request REST API: Find by author, reviewer, date range, content
- Gathering Interest
- mentioned in
-
Page Loading...