stable

Clone or download

Read-only

GitLab tags are now referenced when a reference is added

This is part of request #20918 GitLab tags that contains a reference to Tuleap should be backlinked The repository must have a token defined, otherwise the tag message cannot be retrieved. In addition, the webhook configured at GitLab side must be updated to add "Tag push" if the configuration previously exists. New integration will add by default the "Tag push". If a tag is pushed and have one or multiple TULEAP-XXX in its message, the references are now added. The reference is displayed in the artifact view and is clickable. No style has been done in this patch. Change-Id: I228cb474de5970cc1c2a12e448b61fc00682ac38

Modified Files

Name
A plugins/gitlab/include/API/Tag/GitlabTag.php +79 −0 Go to diff View file
A plugins/gitlab/include/API/Tag/GitlabTagRetriever.php +68 −0 Go to diff View file
M plugins/gitlab/include/Reference/GitlabReferenceBuilder.php +9 −1 Go to diff View file
A plugins/gitlab/include/Reference/Tag/GitlabTagReference.php +49 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/TagPush/TagPushWebhookActionProcessor.php +164 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/TagPush/TagPushWebhookData.php +5 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookActions.php +16 −0 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +39 −2 Go to diff View file
M plugins/gitlab/site-content/fr_FR/LC_MESSAGES/tuleap-gitlab.po +9 −0 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabReferenceBuilderTest.php +38 −0 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/TagPush/TagPushWebhookActionProcessorTest.php +260 −0 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/TagPush/TagPushWebhookDataTest.php +40 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php +7 −0 Go to diff View file