stable

Clone or download

Read-only

[feature] Display action button if preconditions are met

This is part of story #21336 create a development branch on GitLab out of an artifact A new action button (without any link) is added to the artifact action, in the artifact view, if the following preconditions are met: * Feature flag is enabled (feature_flag_artifact-create-gitlab-branches set to true) * Project can use the Gitlab integration * User is project member * User can see the artifact * Project has at least one GitLab integration well configured with secret This button does nothing for now. Change-Id: I8e55829ba1517234fdaf460aef29530c33ecde98

Modified Files

Name
A plugins/gitlab/include/Artifact/Action/CreateBranchButtonFetcher.php +93 −0 Go to diff View file
A plugins/gitlab/include/Plugin/GitlabIntegrationAvailabilityChecker.php +52 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookDao.php +14 −0 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +40 −4 Go to diff View file
M plugins/gitlab/site-content/fr_FR/LC_MESSAGES/tuleap-gitlab.po +3 −0 Go to diff View file
A plugins/gitlab/tests/unit/Artifact/Action/CreateBranchButtonFetcherTest.php +290 −0 Go to diff View file
A plugins/gitlab/tests/unit/Plugin/GitlabIntegrationAvailabilityCheckerTest.php +125 −0 Go to diff View file