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>
This commit is contained in:
Jordan Petridis 2020-11-27 03:05:11 +02:00
parent 12c1689aaa
commit 38c16db9ba

View file

@ -403,6 +403,20 @@ check commits:
script: script:
- ci-fairy check-commits --textwidth 0 --no-signed-off-by - 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 setup templates
# #