stable

Clone or download

Read-only

Remove GitLab webhook when deleting last integration in Tuleap

This is part of story #17182: reference tuleap artifacts in gitlab merge requests How to test: - Have a GitLab repository integrates in 2 Tuleap project - Delete the integration in one project |-> The webhook is still alive in GitLab server - Delete the integration in the second project |-> All data of this repository are removed in DB (webhook, merge_request data, commit data, repository) |-> The webhook on Gitlab server is removed too Change-Id: Id033735f0b65cdb6c2e63cc511f0ff675c5a6e92

Modified Files

Name
M plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php +50 −1 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryDeletor.php +8 −8 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookCreator.php +7 −33 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/WebhookDeletor.php +96 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryDeletorTest.php +13 −10 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookCreatorTest.php +26 −4 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/WebhookDeletorTest.php +263 −0 Go to diff View file