stable

Clone or download

Read-only

[feature] Extract refs in branch name

This is part of story #17181 reference tuleap artifacts in gitlab branches If a pattern TULEAP-xxxx is found in the branch name, then a cross-reference is saved. This is handled in the Post Push webhook. The same branch referencing the same artfiact is not saved multiple times. The cross-reference is not yet displayed in the artifact view. Change-Id: I4c8165301a4e39256bffd21c7238a59c4f5469f5

Modified Files

Name
M plugins/gitlab/db/install.sql +8 −0 Go to diff View file
A plugins/gitlab/db/mysql/2021/202106021530_create_plugin_gitlab_branch_info_table.php +50 −0 Go to diff View file
M plugins/gitlab/db/uninstall.sql +1 −0 Go to diff View file
M plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php +2 −0 Go to diff View file
A plugins/gitlab/include/Reference/Branch/GitlabBranchReference.php +49 −0 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryDeletor.php +6 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/PostPush/Branch/BranchNameTuleapReferenceParser.php +40 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/PostPush/Branch/BranchTuleapReferenceDao.php +60 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/PostPush/Branch/PostPushWebhookActionBranchHandler.php +149 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookActionProcessor.php +13 −3 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookData.php +17 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookDataBuilder.php +30 −2 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +19 −0 Go to diff View file
M plugins/gitlab/site-content/fr_FR/LC_MESSAGES/tuleap-gitlab.po +3 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryDeletorTest.php +8 −0 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/PostPush/Branch/BranchNameTuleapReferenceParserTest.php +67 −0 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/PostPush/Branch/PostPushWebhookActionBranchHandlerTest.php +350 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitWebhookDataExtractorTest.php +6 −6 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookActionProcessorTest.php +25 −6 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookDataBuilderTest.php +4 −3 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php +3 −1 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataExtractorTest.php +4 −3 Go to diff View file