stable

Clone or download

Read-only

story #21335: artifact have a gitlab_mr reference when the MR is created from a TULEAP-XXX branch

Have a MR created from a branch with a name matching the extraction pattern. A reference to the MR should be added in the artifact and comment added on the GitLab side. Change-Id: I5ccc2ef6b73753f1af1af592460b47259a6a3c30

Modified Files

Name
M plugins/gitlab/db/install.sql +1 −0 Go to diff View file
A plugins/gitlab/db/mysql/2021/202106151430_add_merge_request_info_source_branch.php +49 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/CrossReferenceFromMergeRequestCreator.php +1 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/MergeRequestTuleapReferenceDao.php +5 −2 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookActionProcessor.php +1 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookData.php +12 −1 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookDataBuilder.php +15 −5 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PreviouslySavedReferencesRetriever.php +2 −1 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/TuleapReferencesFromMergeRequestDataExtractor.php +27 −9 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookTuleapReferenceCollection.php +33 −4 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookTuleapReferencesParser.php +2 −2 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +2 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/CrossReferenceFromMergeRequestCreatorTest.php +10 −5 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookActionProcessorTest.php +27 −71 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookAuthorDataRetrieverTest.php +4 −2 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookDataBuilderTest.php +32 −18 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PreviouslySavedReferencesRetrieverTest.php +17 −6 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/TuleapReferencesFromMergeRequestDataExtractorTest.php +8 −5 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php +2 −1 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataExtractorTest.php +2 −1 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/WebhookTuleapReferenceCollectionTest.php +71 −0 Go to diff View file