From 38c16db9ba6ee43e7d401e70cd9c2fee07843a56 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 27 Nov 2020 03:05:11 +0200 Subject: [PATCH] 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: --- gitlab/ci_template.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index e09faa8bbe..1560bf1f2e 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -403,6 +403,20 @@ check commits: script: - 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 #