stable

Clone or download

Read-only

Reserve a Git reference for all existing pull requests

The Git reference is reserved and then created in the repo if something is pushed in the branch of the pull request. If for some reasons the creation of the Git reference fails, we will mark the Git reference as broken and do not try to create it again as it is very unlikely to get a working state again. A future contribution will try to create all the missing Git references in the repositories. This is part of story #11477: have a dedicated references for pullrequests Change-Id: I4501425ca8159034671042d27354dab6dd467efb

Modified Files

Name
M plugins/pullrequest/db/install.sql +1 −0 Go to diff View file
A plugins/pullrequest/db/mysql/updates/2018/201806111045_add_status_to_pr_ref_table.php +49 −0 Go to diff View file
A plugins/pullrequest/db/mysql/updates/2018/201806111115_reserve_git_ref_for_existing_pr.php +74 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReference.php +44 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceCreator.php +15 −5 Go to diff View file
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceDAO.php +12 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/GitReference/GitPullRequestReferenceUpdater.php +14 −4 Go to diff View file
M plugins/pullrequest/phpunit/GitReference/GitPullRequestReferenceCreatorTest.php +30 −1 Go to diff View file
A plugins/pullrequest/phpunit/GitReference/GitPullRequestReferenceTest.php +36 −0 Go to diff View file
M plugins/pullrequest/phpunit/GitReference/GitPullRequestReferenceUpdaterTest.php +69 −1 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file