stable

Clone or download

Read-only

Get commit GitLab branch

This is part of story #17180 take into account gitlab commits How to test: - Run make dev-forgeupgrade => New column "commit_branch" added in plugin_gitlab_commit_info - Have an integrated gitlab repository - Commit on this repository Expected results: - The branch name is saved for each commits Change-Id: Ib831e246ae6daa0e9e21ffce358aaeab3508c85b

Modified Files

Name
M plugins/gitlab/db/install.sql +1 −0 Go to diff View file
A plugins/gitlab/db/mysql/202012221028_add_branch_column.php +42 −0 Go to diff View file
M plugins/gitlab/include/Reference/GitlabCommit.php +11 −0 Go to diff View file
M plugins/gitlab/include/Reference/GitlabCommitFactory.php +1 −0 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryWebhookController.php +2 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/EmptyBranchNameException.php +33 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/Commits/CommitTuleapReferenceDAO.php +14 −2 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushCommitWebhookData.php +11 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushCommitWebhookDataExtractor.php +5 −3 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookActionProcessor.php +1 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/WebhookDataBranchNameExtractor.php +38 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookDataExtractor.php +12 −6 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabCommitFactoryTest.php +2 −0 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabCrossReferenceOrganizerTest.php +2 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/Commits/CommitTuleapReferencesParserTest.php +8 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitWebhookDataExtractorTest.php +11 −9 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookActionProcessorTest.php +4 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookActionsTest.php +1 −0 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataBranchNameExtractorTest.php +55 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookDataExtractorTest.php +18 −0 Go to diff View file