stable
Clone or download
This is part of story #17182 reference tuleap artifacts in gitlab merge requests How to test: - Have gitlab instance - Have integrated repository gitlab - Open/Edit/close Merge request in this repository => Merge Request musts contain reference to tuleap artifact |-> In title or/and in description you can add references with "TULEAP-XXXX" where "XXX" a tuleap artifact Expected results - No data are stored in tables - You can see in logs 'gitlab_syslog' => "X Tuleap references found in merge request => "|_ Reference to Tuleap artifact #XXXX found." - If you enter several same reference, it should be displayed once - If you enter a bad reference, a error is logged Change-Id: I6e14fc493c5c522fa3a3db007644fb902ae0332e
Modified Files
Name | ||||
---|---|---|---|---|
R | plugins/gitlab/include/Repository/Webhook/PostPush/Commits/CommitTuleapReferenceNotFoundException.php | Go to diff View file | ||
M | plugins/gitlab/include/Reference/TuleapReferenceRetriever.php | +5 | −8 | Go to diff View file |
R | plugins/gitlab/include/Repository/Webhook/PostPush/Commits/CommitTuleapReferencedArtifactNotFoundException.php | Go to diff View file | ||
A | plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookActionProcessor.php | +80 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookData.php | +42 | −5 | Go to diff View file |
A | plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookDataBuilder.php | +85 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookActionProcessor.php | +3 | −3 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/WebhookActions.php | +14 | −3 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/WebhookDataExtractor.php | +9 | −2 | Go to diff View file |
M | plugins/gitlab/include/gitlabPlugin.php | +12 | −1 | Go to diff View file |
M | plugins/gitlab/tests/unit/Reference/TuleapReferenceRetrieverTest.php | +2 | −4 | Go to diff View file |
A | plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookActionProcessorTest.php | +143 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookDataBuilderTest.php | +112 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookActionProcessorTest.php | +6 | −6 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php | +53 | −3 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataExtractorTest.php | +18 | −2 | Go to diff View file |