stable
Clone or download
Read-only
Part of story #26799 associate a Tuleap project and a GitLab group How to test: The REST route now accepts configuration parameters, such as: - whether it allows artifact closure or not (boolean) - the branch prefix (string or null) If you give this data to the route, it will apply it to all new integrations. If a gitlab project was already integrated previously in the project, its configuration is not modified. If successful, it should respond with code 200 (and not 201, since we don't provide a Location Header and the GET URI will not be the same). If a branch prefix would result in an invalid Git branch name, it will respond with code 400 Bad request. Change-Id: I0d37ff0bad388b2fb8a216088defc205b97ee751
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/include/Branch/InvalidBranchNameException.php | +1 | −1 | Go to diff View file |
M | plugins/gitlab/include/Artifact/Action/CreateBranchPrefixDao.php | +1 | −1 | Go to diff View file |
M | plugins/gitlab/include/Artifact/Action/CreateBranchPrefixUpdater.php | +4 | −9 | Go to diff View file |
A | plugins/gitlab/include/Artifact/Action/SaveIntegrationBranchPrefix.php | +26 | −0 | Go to diff View file |
M | plugins/gitlab/include/Group/GroupCreator.php | +19 | −3 | Go to diff View file |
M | plugins/gitlab/include/Group/NewGroup.php | +7 | −4 | Go to diff View file |
M | plugins/gitlab/include/REST/v1/GitlabGroupResource.php | +4 | −2 | Go to diff View file |
M | plugins/gitlab/include/REST/v1/Group/GitlabGroupPOSTRepresentation.php | +9 | −1 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryGroupLinkHandler.php | +23 | −13 | Go to diff View file |
M | plugins/gitlab/tests/unit/API/Group/GitlabGroupInformationRetrieverTest.php | +36 | −34 | Go to diff View file |
M | plugins/gitlab/tests/unit/Artifact/Action/CreateBranchPrefixUpdaterTest.php | +32 | −81 | 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 | +37 | −22 | Go to diff View file |
M | plugins/gitlab/tests/unit/Group/GroupCreatorTest.php | +17 | −2 | Go to diff View file |
M | plugins/gitlab/tests/unit/Group/NewGroupTest.php | +22 | −12 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/SaveIntegrationBranchPrefixStub.php | +47 | −0 | Go to diff View file |