stable
Clone or download
Read-only
part of: story #17180 take into account gitlab commits How to test: - run forgeupgrade --> You must now have a table named plugin_gitlab_commit_info in db - Commit some work in a gitlab repo linked to your tuleap project --> Commit data has been stored in the plugin_gitlab_commit_info table - When the commit message contains more than 1 reference, the commit is still stored only once - When the commit message contains several bad tuleap references and at least one good, the commit data is saved in db Change-Id: I23bdf834eb3083560e72b55566333921fc4b0833
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/gitlab/db/install.sql | +10 | −0 | Go to diff View file |
A | plugins/gitlab/db/mysql/202012161200_create_plugin_gitlab_commit_info_table.php | +56 | −0 | Go to diff View file |
M | plugins/gitlab/db/uninstall.sql | +1 | −0 | Go to diff View file |
A | plugins/gitlab/include/Reference/TuleapReferenceRetriever.php | +90 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/Webhook/PostPush/Commits/CommitTuleapReferenceDAO.php | +51 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/Webhook/PostPush/Commits/CommitTuleapReferenceNotFoundException.php | +30 | −0 | Go to diff View file |
A | plugins/gitlab/include/Repository/Webhook/PostPush/Commits/CommitTuleapReferencedArtifactNotFoundException.php | +29 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushCommitWebhookData.php | +51 | −3 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushCommitWebhookDataExtractor.php | +53 | −11 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookActionProcessor.php | +63 | −49 | Go to diff View file |
M | plugins/gitlab/include/Repository/Webhook/WebhookActions.php | +0 | −1 | Go to diff View file |
M | plugins/gitlab/include/gitlabPlugin.php | +10 | −3 | Go to diff View file |
A | plugins/gitlab/tests/unit/Reference/TuleapReferenceRetrieverTest.php | +128 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/Commits/CommitTuleapReferencesParserTest.php | +40 | −8 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitWebhookDataExtractorTest.php | +128 | −5 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookActionProcessorTest.php | +90 | −46 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php | +10 | −1 | Go to diff View file |
M | plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataExtractorTest.php | +14 | −2 | Go to diff View file |