stable

Clone or download

Read-only

feat: Update branch prefix for linked GitLab group

This is part of story #26799 associate a Tuleap project and a GitLab group The create branch prefix of a linked GitLab group can now be updated using the REST endpoint PATCH gitlab_groups/:id with a json payload like: { "create_branch_prefix": "prefix/dev/01/" } The update must only be done by a Git administrator. If the prefix is not valid, an error will be thrown. Change-Id: Icf3f791277dd82f2244cd1b3e2a94b8e8f9308a4

Modified Files

Name
M plugins/gitlab/include/Group/GitlabGroup.php +21 −0 Go to diff View file
M plugins/gitlab/include/Group/GitlabGroupDAO.php +23 −1 Go to diff View file
M plugins/gitlab/include/Group/GitlabGroupFactory.php +14 −0 Go to diff View file
A plugins/gitlab/include/Group/GitlabGroupLinkNotFoundException.php +31 −0 Go to diff View file
A plugins/gitlab/include/Group/GroupUpdator.php +68 −0 Go to diff View file
A plugins/gitlab/include/Group/RetrieveGroupLink.php +28 −0 Go to diff View file
A plugins/gitlab/include/Group/UpdateBranchPrefixOfGroup.php +31 −0 Go to diff View file
M plugins/gitlab/include/REST/v1/GitlabGroupResource.php +70 −3 Go to diff View file
A plugins/gitlab/include/REST/v1/Group/GitlabGroupLinkRepresentation.php +66 −0 Go to diff View file
A plugins/gitlab/include/REST/v1/Group/GitlabGroupPATCHRepresentation.php +44 −0 Go to diff View file
M plugins/gitlab/tests/rest/DatabaseInitialization.php +18 −0 Go to diff View file
A plugins/gitlab/tests/rest/Gitlab/GroupTest.php +64 −0 Go to diff View file
M plugins/gitlab/tests/rest/TestBase.php +4 −6 Go to diff View file
M plugins/gitlab/tests/unit/Group/GitlabGroupFactoryTest.php +4 −1 Go to diff View file
M plugins/gitlab/tests/unit/Group/GitlabRepositoryGroupLinkHandlerTest.php +3 −1 Go to diff View file
M plugins/gitlab/tests/unit/Group/GroupCreatorTest.php +3 −1 Go to diff View file
A plugins/gitlab/tests/unit/Group/GroupUpdatorTest.php +92 −0 Go to diff View file
A plugins/gitlab/tests/unit/Test/Stubs/RetrieveGroupLinkStub.php +42 −0 Go to diff View file