Skip to content

Allow tags as target of pipeline schedules

What does this MR do and why?

This MR makes it possible to use tags as the target of pipeline schedules. It is already documented and possible via the API, so this only makes the feature work on the frontend.

The ref selector is the RefSelector component that’s already used across GitLab, for example when creating a new release.

Related to #23292 (closed)

Screenshots or screen recordings

Before After
image image
image image

With feature flag disabled

Screenshots
image
image

How to set up and validate locally

  1. Enable the feature flag (in bin/rails c)
    Feature.enable(:pipeline_schedules_with_tags)
  2. Go to a project
  3. Set up CI
  4. Create a tag
  5. Go to CI/CD > Schedules
  6. Click on New schedule
  7. Enter a description
  8. Select the created tag
  9. Save the schedule
  10. (after some time): see that a pipeline was created for the tag

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kev

Merge request reports