stable

Clone or download

Read-only

Update of a pull request updates the Git reference in the destination repository

If the Git reference does not exist yet, the Git reference will be created. So whatever you do with your PR the reference under the refs/tlpr/ will be there up to date. The hidden option enable_creation_git_ref_at_pr_creation that was introduced by commit 831fe9636719a8b907255ab51cb753d8b3178065 is now removed since the references are now always up to date even if there not necessarily used by the Tuleap backend. This is part of story #11477: have a dedicated references for pullrequests Change-Id: Ia7a56cd20f15c473734527e3eb4d1d6ed1d27b75

Modified Files

Name
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceCreator.php +2 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceDAO.php +8 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceUpdater.php +70 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/PullRequestUpdater.php +46 −15 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.class.php +8 −1 Go to diff View file
M plugins/pullrequest/phpunit/GitReference/GitPullRequestReferenceCreatorTest.php +11 −16 Go to diff View file
A plugins/pullrequest/phpunit/GitReference/GitPullRequestReferenceUpdaterTest.php +115 −0 Go to diff View file
M plugins/pullrequest/tests/PullRequestUpdaterTest.php +9 −2 Go to diff View file