stable

Clone or download

Read-only

Display title of Merge request xRef

This is part of story #17182 reference tuleap artifacts in gitlab merge requests How to test: - Have an integrated GitLab repository - Create/Edit/Close Merge request in this repository with reference to tuleap => A reference can be created with "TULEAP-XXX" in the title or description => For example, title is 'TULEAP-59 add some unit test' Expected results: - When merge request is created => A xRef is created in artifact #59 => Its title is displayed instead of 'merge_request/XXX' => xRef are grouped by repository's name - Upate this merge request with another reference to Tuleap => For example, new title is "TULEAP-123, unit tests missing" => Merge request title is updated in plugin_gitlab_merge_request_info table => xRef to artifact #123 is created => /!\ For the moment the old xRef is keeped and it will be removed in next patch - If you remove the last integration of this repository => All data in plugin_gitlab_merge_request_info of this repository must be removed too Change-Id: Ie75a3cbd76074c9cdd0f5a9ef2246e19154e002c

Modified Files

Name
M plugins/gitlab/db/install.sql +8 −0 Go to diff View file
A plugins/gitlab/db/mysql/2021/202101191000_create_plugin_gitlab_merge_request_info_table.php +54 −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
M plugins/gitlab/include/Reference/GitlabCrossReferenceOrganizer.php +75 −11 Go to diff View file
A plugins/gitlab/include/Reference/MergeRequest/GitlabMergeRequest.php +41 −0 Go to diff View file
A plugins/gitlab/include/Reference/MergeRequest/GitlabMergeRequestReferenceRetriever.php +60 −0 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryDeletor.php +9 −1 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/PostMergeRequest/MergeRequestTuleapReferenceDao.php +69 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookActionProcessor.php +36 −3 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +8 −4 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabCrossReferenceOrganizerTest.php +113 −9 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryDeletorTest.php +10 −1 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostMergeRequest/PostMergeRequestWebhookActionProcessorTest.php +98 −4 Go to diff View file