Use default reviewers when creating a PR via REST API

Issue #16701 new
David Scourfield created an issue

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.

Comments (0)

  1. Log in to comment