Pull request REST documentation example is incorrect

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 3.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:

      Rating: Good

      What do you like?

      Documentation reads clearly. Was easy to find what I needed.

      What needs to be improved?

      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

            Assignee:
            Robin Stocker (Inactive)
            Reporter:
            Allan Tokuda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: