stable

Clone or download

Read-only

[feature] Artifact closure must only be done in default branch

This is part of story #21418 close artifacts with Done semantic When a commit that asks for artifact closure is done in the default branch, then the artifact must be closed if all requirements are met. When this push occurs in another branch, then the artifact must not be closed. Merge Request approval to check if some artifacts must be closed after a merge in the default branch will be handled in a dedicated feature commit. Change-Id: I56d4d38be89dd0f17a46be64a9b382dd6837b6b5

Modified Files

Name
M plugins/gitlab/include/API/GitlabProject.php +12 −1 Go to diff View file
M plugins/gitlab/include/API/GitlabProjectBuilder.php +6 −3 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookCloseArtifactHandler.php +29 −0 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +5 −0 Go to diff View file
M plugins/gitlab/tests/unit/API/GitlabProjectBuilderTest.php +28 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryCreatorTest.php +1 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushWebhookCloseArtifactHandlerTest.php +188 −0 Go to diff View file