stable
Clone or download
Part of story #17183 close artifacts from commit messages In this step, only a new comment is posted in the referenced Artifacts from the GitLab commit. The artifact is not closed or workflow transition are not taken in account. Only the 'resolve' or 'resolves' keys are supported. How to test: - Tracker related to artifact 1000 and 108 must not have Status semantic defined - In the commit message add some Tuleap references with the 'resolve' key before. e.g : This is a commit with references: Tuleap-95 , resolve tuleap-1000, resolves Tuleap-108 => In that example, the artifacts 108 and 1000 should have a new follow up comment with the Tuleap user (if found) reference or with the commit author. Change-Id: I579a640d05c7d58e4670097b2a01d1d10f4d8299
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/gitlab/include/Artifact/ArtifactNotFoundException.php | +30 | −0 | Go to diff View file |
A | plugins/gitlab/include/Artifact/ArtifactRetriever.php | +54 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushCommitBotCommenter.php | +46 | −1 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookActionProcessor.php | +18 | −6 | Go to diff View file |
A | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookCloseArtifactHandler.php | +105 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/WebhookTuleapReference.php | +14 | −2 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/WebhookTuleapReferencesParser.php | +13 | −4 | Go to diff View file |
M | plugins/gitlab/include/gitlabPlugin.php | +20 | −7 | Go to diff View file |
A | plugins/gitlab/tests/unit/Artifact/ArtifactRetrieverTest.php | +68 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitBotCommenterTest.php | +150 | −9 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookActionProcessorTest.php | +113 | −2 | Go to diff View file |
A | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookCloseArtifactHandlerTest.php | +242 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/WebhookTuleapReferenceTest.php | +1 | −1 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/WebhookTuleapReferencesParserTest.php | +65 | −2 | Go to diff View file |