diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2021-04-19 16:37:31 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2021-04-19 19:32:07 -0400 |
commit | 1296965ae2f8092d79a3988a3190c81be05f5c55 (patch) | |
tree | 037fa0b24fd69ca9bd87e6c4f0b21e58c9b04145 /.gitlab-ci.yml | |
parent | 36aa468c4916cfccd4363f0e27af19f2aeae8604 (diff) |
gitlab-ci: Verify that allow-edit is set
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 721a2ca..5734264 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,36 @@ +include: + - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/ci-fairy.yml" + stages: + - verify - build - test - deploy +workflow: + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS' + when: never + - if: '$CI_COMMIT_BRANCH' + default: image: registry.freedesktop.org/libnice/libnice/centos7/meson-build +# +# Check "allow-edit" checkbox on merge requests with ci-fairy +# +check allow-edit: + extends: '.fdo.ci-fairy' + needs: [] + stage: 'verify' + variables: + GIT_STRATEGY: 'none' + script: + - ci-fairy check-merge-request --require-allow-collaboration + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + when: always build: stage: build |