stable

Clone or download

Read-only

Add the possibility to enable/disable the artfiact closure via REST

This is part of story #17183 close artifacts from commit messages How to test: - With the API Explorer, go to PATCH /gitlab_repositories - Fill the `allow_artifact_closure` key and sumbit => The updated gitlab integration should be returned with the updated `allow_artifact_closure` key, other values should be still the same before the update. => In `plugin_gitlab_repository_integration` table , the `allow_artifact_closure` value of the concerned gitlab integration should be updated - Commit some contents with keywords in your Gitlab repository => According to the new value, there is a new follow up comment (or not) in the concerned artifact. Change-Id: Ib98ff4dfb45e4cb3c556f5df3084300e1a094f0c

Modified Files

Name
A plugins/gitlab/include/REST/v1/GitlabRepositoryIntegrationPATCHRepresentation.php +35 −0 Go to diff View file
M plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php +88 −2 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryIntegrationDao.php +11 −0 Go to diff View file
A plugins/gitlab/include/Repository/GitlabRepositoryIntegrationUpdator.php +94 −0 Go to diff View file
M plugins/gitlab/tests/rest/Gitlab/RepositoryTest.php +42 −11 Go to diff View file
A plugins/gitlab/tests/unit/Repository/GitlabRepositoryIntegrationUpdatorTest.php +151 −0 Go to diff View file