stable

Clone or download

Read-only

Add information in the PR REST route to be able fetch instruction in the UI

Clone URLs and PR Git reference are available in the GET /pull_requests/{id} route. Instructions to fetch a PR should be something like that: git fetch <clone_url> <head_reference> git checkout FETCH_HEAD This is part of story #11477: have a dedicated references for pullrequests Change-Id: Id559cd2d8e5ab55cb27f3a05117991c7c0ca8b2b

Modified Files

Name
A plugins/git/include/Git/Gitolite/GitoliteAccessURLGenerator.php +72 −0 Go to diff View file
M plugins/git/include/GitBackend.class.php +1 −1 Go to diff View file
M plugins/git/include/Git_Backend_Gitolite.class.php +16 −35 Go to diff View file
M plugins/git/include/Git_Backend_Interface.php +2 −2 Go to diff View file
M plugins/git/include/autoload.php +3 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +8 −2 Go to diff View file
A plugins/git/phpunit/Git_Backend_GitoliteTest.php +96 −0 Go to diff View file
A plugins/git/phpunit/Gitolite/GitoliteAccessURLGeneratorTest.php +135 −0 Go to diff View file
M plugins/git/tests/GitRepositoryImplTest.php +3 −2 Go to diff View file
M plugins/git/tests/GitXmlImporterTest.php +2 −1 Go to diff View file
M plugins/git/tests/Git_Backend_GitoliteTest.php +9 −135 Go to diff View file
A plugins/pullrequest/include/PullRequest/PullRequestWithGitReference.php +57 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/GitRepositoryReference.php +23 −3 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestMinimalRepresentation.php +13 −3 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestRepresentation.php +9 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestRepresentationFactory.php +16 −5 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +64 −41 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryResource.php +11 −2 Go to diff View file