stable

Clone or download

Read-only

Prevent edition of the reviewers on a closed PR

In fd6d9296f6e56ecfd0cb48bf23511f1e6dfc7b8c the buttons to edit the list are not visible when the PR is merged but this was not enforced by the REST endpoint. Part of story #14190: get email notifications on pull requests - first stage Change-Id: I5817e400ee68a3ea1555d7c78564ae6d4eca5fe3

Modified Files

Name
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +6 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reviewer/ReviewerUpdater.php +5 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/ReviewersCannotBeUpdatedOnClosedPullRequestException.php +36 −0 Go to diff View file
M plugins/pullrequest/phpunit/Reviewer/ReviewerUpdaterTest.php +13 −0 Go to diff View file