|
|
8f24f2 |
From cd8518b7f4ebfda9955bf0b649cf759c45e729f1 Mon Sep 17 00:00:00 2001
|
|
|
8f24f2 |
From: Jan Macku <jamacku@redhat.com>
|
|
|
8f24f2 |
Date: Mon, 6 Jun 2022 15:40:20 +0200
|
|
|
8f24f2 |
Subject: [PATCH] ci(Mergify): configuration update
|
|
|
8f24f2 |
|
|
|
8f24f2 |
Add rules for needs-ci label management
|
|
|
8f24f2 |
|
|
|
8f24f2 |
RHEL-only
|
|
|
8f24f2 |
|
|
|
8f24f2 |
Related: #2087152
|
|
|
8f24f2 |
---
|
|
|
8f24f2 |
.mergify.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
8f24f2 |
1 file changed, 48 insertions(+)
|
|
|
8f24f2 |
create mode 100644 .mergify.yml
|
|
|
8f24f2 |
|
|
|
8f24f2 |
diff --git a/.mergify.yml b/.mergify.yml
|
|
|
8f24f2 |
new file mode 100644
|
|
|
8f24f2 |
index 0000000000..6fa400effd
|
|
|
8f24f2 |
--- /dev/null
|
|
|
8f24f2 |
+++ b/.mergify.yml
|
|
|
8f24f2 |
@@ -0,0 +1,48 @@
|
|
|
8f24f2 |
+# doc: https://docs.mergify.com
|
|
|
8f24f2 |
+---
|
|
|
8f24f2 |
+
|
|
|
8f24f2 |
+pull_request_rules:
|
|
|
8f24f2 |
+ - name: Add `needs-ci` label on CI fail
|
|
|
8f24f2 |
+ conditions:
|
|
|
8f24f2 |
+ - or:
|
|
|
8f24f2 |
+ # Unit tests
|
|
|
8f24f2 |
+ - -check-success=build (stream8, GCC)
|
|
|
8f24f2 |
+ - -check-success=build (stream8, GCC_ASAN)
|
|
|
8f24f2 |
+ # CentOS Stream CI
|
|
|
8f24f2 |
+ - -check-success=CentOS CI (CentOS Stream 8)
|
|
|
8f24f2 |
+ # LGTM
|
|
|
8f24f2 |
+ - and:
|
|
|
8f24f2 |
+ - "-check-success=LGTM analysis: JavaScript"
|
|
|
8f24f2 |
+ - "-check-neutral=LGTM analysis: JavaScript"
|
|
|
8f24f2 |
+ - and:
|
|
|
8f24f2 |
+ - "-check-success=LGTM analysis: Python"
|
|
|
8f24f2 |
+ - "-check-neutral=LGTM analysis: Python"
|
|
|
8f24f2 |
+ - and:
|
|
|
8f24f2 |
+ - "-check-success=LGTM analysis: C/C++"
|
|
|
8f24f2 |
+ - "-check-neutral=LGTM analysis: C/C++"
|
|
|
8f24f2 |
+ actions:
|
|
|
8f24f2 |
+ label:
|
|
|
8f24f2 |
+ add:
|
|
|
8f24f2 |
+ - needs-ci
|
|
|
8f24f2 |
+
|
|
|
8f24f2 |
+ - name: Remove `needs-ci` label on CI success
|
|
|
8f24f2 |
+ conditions:
|
|
|
8f24f2 |
+ # Unit tests
|
|
|
8f24f2 |
+ - check-success=build (stream8, GCC)
|
|
|
8f24f2 |
+ - check-success=build (stream8, GCC_ASAN)
|
|
|
8f24f2 |
+ # CentOS Stream CI
|
|
|
8f24f2 |
+ - check-success=CentOS CI (CentOS Stream 8)
|
|
|
8f24f2 |
+ # LGTM
|
|
|
8f24f2 |
+ - or:
|
|
|
8f24f2 |
+ - "check-success=LGTM analysis: JavaScript"
|
|
|
8f24f2 |
+ - "check-neutral=LGTM analysis: JavaScript"
|
|
|
8f24f2 |
+ - or:
|
|
|
8f24f2 |
+ - "check-success=LGTM analysis: Python"
|
|
|
8f24f2 |
+ - "check-neutral=LGTM analysis: Python"
|
|
|
8f24f2 |
+ - or:
|
|
|
8f24f2 |
+ - "check-success=LGTM analysis: C/C++"
|
|
|
8f24f2 |
+ - "check-neutral=LGTM analysis: C/C++"
|
|
|
8f24f2 |
+ actions:
|
|
|
8f24f2 |
+ label:
|
|
|
8f24f2 |
+ remove:
|
|
|
8f24f2 |
+ - needs-ci
|