stable

Clone or download

Read-only

Reviewers can be set on a pull-request via the REST API

A new REST endpoint is available for this operation: PUT /pull_requests/{id}/reviewers. Only someone with the ability to merge a PR can update the list of reviewers. Only users that can see the PR can be added to the list of reviewers. Part of story #14190: get email notifications on pull requests - first stage Change-Id: Iafcbb4d8a265fc1ed8c25cdbef9b0a1cb1cb3483

Modified Files

Name
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +43 −1 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/Reviewer/ReviewerRepresentationInformationExtractor.php +67 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/Reviewer/ReviewersPUTRepresentation.php +35 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reviewer/ReviewerDAO.php +14 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/ReviewerUpdater.php +66 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/UserCannotBeAddedAsReviewerException.php +50 −0 Go to diff View file
A plugins/pullrequest/phpunit/Reviewer/ReviewerUpdaterTest.php +98 −0 Go to diff View file
M plugins/pullrequest/tests/integration/ReviewerDAOTest.php +51 −0 Go to diff View file
M plugins/pullrequest/tests/rest/PullRequest/PullRequestsReviewersTest.php +69 −2 Go to diff View file