Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-4919

Pull request REST documentation example is incorrect

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Low
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              rstocker Robin Stocker
              allan.tokuda Allan Tokuda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: