stable
Clone or download
Read-only
Part of story #26799 associate a Tuleap project and a GitLab group That contribution introduce the REST route, for now, it only retrieves and creates the Gitlab integration on the Tuleap side and nothing else. The route is behind a feature flag, so you must enable it if you want to see the route. To enable it: tuleap config-set feature_flag_gitlab_link_group 1 You can test this contribution in the API Explorer => POST /gitlab_groups. It returns the gitlab group id and the number of integration created in Tuleap Note: Your token must have the `api` scope Change-Id: I9bdfd9c9d09c787c818d7bc458596fd91e32948b
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/gitlab/include/API/BuildGitlabProjects.php | +33 | −0 | Go to diff View file |
M | plugins/gitlab/include/API/ClientWrapper.php | +1 | −1 | Go to diff View file |
M | plugins/gitlab/include/API/GitlabProjectBuilder.php | +24 | −8 | Go to diff View file |
A | plugins/gitlab/include/API/WrapGitlabClient.php | +32 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/GroupCreator.php | +63 | −0 | Go to diff View file |
M | plugins/gitlab/include/REST/ResourcesInjector.php | +5 | −0 | Go to diff View file |
A | plugins/gitlab/include/REST/v1/GitlabGroupResource.php | +182 | −0 | Go to diff View file |
A | plugins/gitlab/include/REST/v1/Group/GitlabGroupPOSTRepresentation.php | +43 | −0 | Go to diff View file |
A | plugins/gitlab/include/REST/v1/Group/GitlabGroupRepresentation.php | +33 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/CreateGitlabRepositories.php | +43 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryCreator.php | +41 | −11 | Go to diff View file |
M | plugins/gitlab/tests/unit/API/GitlabProjectBuilderTest.php | +149 | −128 | Go to diff View file |
A | plugins/gitlab/tests/unit/Group/GroupCreatorTest.php | +157 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/GitlabRepositoryCreatorTest.php | +99 | −5 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/BuildGitlabProjectsStub.php | +65 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/CreateGitlabRepositoriesStub.php | +67 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/GitlabClientWrapperStub.php | +48 | −0 | Go to diff View file |