Automatically apply ~"pipeline:revert" label when a branch name starts with `revert-`
Context
When doing a revert, we probably don't need to run a full pipeline. The ~pipeline:revert label is generally used for skipping non-essential jobs.
- If you apply this label when creating the MR, the first pipeline will be fast.
- If you apply this label once the MR has been created, you will need to cancel the pipeline, and run a new one.
This has been initially discussed in gitlab-org/ruby/gems/gitlab-dangerfiles#28 (comment 914190258), and more recently in gitlab-org/ruby/gems/gitlab-dangerfiles#28 (comment 1123387848).
Goal
Discuss what options we have to automatically apply the ~pipeline:revert label to MRs that start with revert-
(i.e. revert MRs)
Edited by David Dieulivol