Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-16701

Use default reviewers when creating a PR via REST API

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      When creating a PR via the REST API for a repo which has default reviewers, if the request does not explicitly specify reviewers for the PR, the default reviewers should be used.

      For example:

      POST /rest/api/1.0/projects/

      {projectKey}

      /repos/

      {repositorySlug}

      /pull-requests

      {
      "title": "...",
      "state": "OPEN",
      "fromRef": {
      "id": "refs/heads/source"
      },
      "toRef": {
      "id": "refs/heads/dest"
      },
      "locked": false
      }

      Note no reviewers specified in POST body, so default reviewers should be set.

      Attachments

        Activity

          People

            Unassigned Unassigned
            998c16ebbd9d Dai Scourfield
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: