stable

Clone or download

Read-only

Create Git pull reference in the repository when the PR is accessed

It should be mostly unnecessary after the first day of the upgrade since all the PR will be properly migrated during the night. This contribution also prevents access to pull request with a broken Git reference. This is part of story #11477: have a dedicated references for pullrequests Change-Id: Iebe00252125945ecc6077b1201f2824a279c4364

Modified Files

Name
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReference.php +13 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceNotFoundException.php +29 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceRetriever.php +49 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +48 −0 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.class.php +1 −0 Go to diff View file
A plugins/pullrequest/phpunit/GitReference/GitPullRequestReferenceRetrieverTest.php +62 −0 Go to diff View file
A plugins/pullrequest/site-content/fr_FR/LC_MESSAGES/tuleap-pullrequest.po +2 −0 Go to diff View file
A plugins/pullrequest/site-content/tuleap-pullrequest.pot +2 −0 Go to diff View file
M plugins/pullrequest/tests/rest/DatabaseInitialization.class.php +24 −9 Go to diff View file