diff options
author | Jordan Petridis <jordan@centricular.com> | 2020-11-27 03:05:11 +0200 |
---|---|---|
committer | Jordan Petridis <jordan@centricular.com> | 2020-11-27 03:05:11 +0200 |
commit | 38c16db9ba6ee43e7d401e70cd9c2fee07843a56 (patch) | |
tree | 5315c4eb3faedc8a1c9faa3f6dbfb5dead204387 | |
parent | 12c1689aaaf307feb50f465565f6d752f16a1b0e (diff) |
ci_template: job to complain about allow-edit
Make sure merge requests have enabled the "allow-edit"
option in the MR so we can rebase them.
Close gstreamer/gstreamer-project#34
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/304>
-rw-r--r-- | gitlab/ci_template.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index e09faa8..1560bf1 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -404,6 +404,20 @@ check commits: - ci-fairy check-commits --textwidth 0 --no-signed-off-by # +# Check "allow-edit" checkbox on merge requests with ci-fairy +# +check allow-edit: + extends: '.fdo.ci-fairy' + needs: [] + stage: 'preparation' + variables: + GIT_STRATEGY: 'none' + script: + - ci-fairy check-merge-request --require-allow-collaboration + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + +# # gst-build setup templates # .gst_build_template: &gst_build |