|
|
b7dd4d |
From 0feaf0be515c02a10ca12f726b4a8424262cf09c Mon Sep 17 00:00:00 2001
|
|
|
b7dd4d |
From: Jan Macku <jamacku@redhat.com>
|
|
|
b7dd4d |
Date: Tue, 19 Jul 2022 12:43:43 +0200
|
|
|
b7dd4d |
Subject: [PATCH] ci(Mergify): Add `ci-waived` logic
|
|
|
b7dd4d |
|
|
|
b7dd4d |
RHEL-only
|
|
|
b7dd4d |
|
|
|
b7dd4d |
Related: #2087152
|
|
|
b7dd4d |
---
|
|
|
b7dd4d |
.mergify.yml | 32 ++++++++++++++++++--------------
|
|
|
b7dd4d |
1 file changed, 18 insertions(+), 14 deletions(-)
|
|
|
b7dd4d |
|
|
|
b7dd4d |
diff --git a/.mergify.yml b/.mergify.yml
|
|
|
b7dd4d |
index 6fa400effd..3afd04f18e 100644
|
|
|
b7dd4d |
--- a/.mergify.yml
|
|
|
b7dd4d |
+++ b/.mergify.yml
|
|
|
b7dd4d |
@@ -4,6 +4,7 @@
|
|
|
b7dd4d |
pull_request_rules:
|
|
|
b7dd4d |
- name: Add `needs-ci` label on CI fail
|
|
|
b7dd4d |
conditions:
|
|
|
b7dd4d |
+ - label!=ci-waived
|
|
|
b7dd4d |
- or:
|
|
|
b7dd4d |
# Unit tests
|
|
|
b7dd4d |
- -check-success=build (stream8, GCC)
|
|
|
b7dd4d |
@@ -27,21 +28,24 @@ pull_request_rules:
|
|
|
b7dd4d |
|
|
|
b7dd4d |
- name: Remove `needs-ci` label on CI success
|
|
|
b7dd4d |
conditions:
|
|
|
b7dd4d |
- # Unit tests
|
|
|
b7dd4d |
- - check-success=build (stream8, GCC)
|
|
|
b7dd4d |
- - check-success=build (stream8, GCC_ASAN)
|
|
|
b7dd4d |
- # CentOS Stream CI
|
|
|
b7dd4d |
- - check-success=CentOS CI (CentOS Stream 8)
|
|
|
b7dd4d |
- # LGTM
|
|
|
b7dd4d |
- or:
|
|
|
b7dd4d |
- - "check-success=LGTM analysis: JavaScript"
|
|
|
b7dd4d |
- - "check-neutral=LGTM analysis: JavaScript"
|
|
|
b7dd4d |
- - or:
|
|
|
b7dd4d |
- - "check-success=LGTM analysis: Python"
|
|
|
b7dd4d |
- - "check-neutral=LGTM analysis: Python"
|
|
|
b7dd4d |
- - or:
|
|
|
b7dd4d |
- - "check-success=LGTM analysis: C/C++"
|
|
|
b7dd4d |
- - "check-neutral=LGTM analysis: C/C++"
|
|
|
b7dd4d |
+ - label=ci-waived
|
|
|
b7dd4d |
+ - and:
|
|
|
b7dd4d |
+ # Unit tests
|
|
|
b7dd4d |
+ - check-success=build (stream8, GCC)
|
|
|
b7dd4d |
+ - check-success=build (stream8, GCC_ASAN)
|
|
|
b7dd4d |
+ # CentOS Stream CI
|
|
|
b7dd4d |
+ - check-success=CentOS CI (CentOS Stream 8)
|
|
|
b7dd4d |
+ # LGTM
|
|
|
b7dd4d |
+ - or:
|
|
|
b7dd4d |
+ - "check-success=LGTM analysis: JavaScript"
|
|
|
b7dd4d |
+ - "check-neutral=LGTM analysis: JavaScript"
|
|
|
b7dd4d |
+ - or:
|
|
|
b7dd4d |
+ - "check-success=LGTM analysis: Python"
|
|
|
b7dd4d |
+ - "check-neutral=LGTM analysis: Python"
|
|
|
b7dd4d |
+ - or:
|
|
|
b7dd4d |
+ - "check-success=LGTM analysis: C/C++"
|
|
|
b7dd4d |
+ - "check-neutral=LGTM analysis: C/C++"
|
|
|
b7dd4d |
actions:
|
|
|
b7dd4d |
label:
|
|
|
b7dd4d |
remove:
|