stable
Clone or download
Read-only
This is part of request #30013 Be able to reopen an abandoned pull request Given a pull request that have been abandoned, it's currently not possible to reopen it. User have to create another branch and create a new pull request. Tuleap must offer the ability to reopen an abandoned pull request. This first step is to be able to do that using the REST API route PATCH /pull_requests/:id with the current payload: { "status": "review" } How to test ----------- * Create a pull request asking to integrate branch B into branch A * Abandon this pull request * try to reopen this pull request using the REST route => The pull request must be reopen. Change-Id: Ic4313ca6860020ec23afd196110985c6fa4cc707
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/pullrequest/include/PullRequest/Dao.php | +11 | −0 | Go to diff View file |
A | plugins/pullrequest/include/PullRequest/Exception/PullRequestCannotBeReopen.php | +29 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/GitExec.php | +6 | −0 | Go to diff View file |
A | plugins/pullrequest/include/PullRequest/PullRequestReopener.php | +91 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/PullRequestUpdater.php | +69 | −56 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php | +35 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/StatusPatcher.php | +33 | −4 | Go to diff View file |
A | plugins/pullrequest/tests/unit/PullRequestReopenerTest.php | +370 | −0 | Go to diff View file |
M | plugins/pullrequest/tests/unit/REST/v1/StatusPatcherTest.php | +30 | −3 | Go to diff View file |