gitlab CI: check merge requests for the allow collaboration checkbox
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Jun 2020 10:50:29 +0000 (20:50 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Jun 2020 10:50:37 +0000 (20:50 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml
.gitlab-ci/ci.template

index 5601e81..85d923c 100644 (file)
@@ -167,6 +167,24 @@ check-commit:
       junit: results.xml
 
 #
+# Verify that the merge request has the allow-collaboration checkbox ticked
+#
+
+check-merge-request:
+  image: golang:alpine
+  stage: prep
+  before_script:
+    - apk add python3 py-pip git
+    - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates
+  script:
+    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
+  artifacts:
+    when: on_failure
+    reports:
+      junit: results.xml
+  allow_failure: true
+
+#
 # This stage will recreate the container images only if the image
 # is too old or if it is missing some dependencies.
 #
index f92efeb..2295e55 100644 (file)
@@ -163,6 +163,24 @@ check-commit:
       junit: results.xml
 
 #
+# Verify that the merge request has the allow-collaboration checkbox ticked
+#
+
+check-merge-request:
+  image: golang:alpine
+  stage: prep
+  before_script:
+    - apk add python3 py-pip git
+    - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates
+  script:
+    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
+  artifacts:
+    when: on_failure
+    reports:
+      junit: results.xml
+  allow_failure: true
+
+#
 # This stage will recreate the container images only if the image
 # is too old or if it is missing some dependencies.
 #