ac3a84
From a7be2c1e61d67f53f9eb90eb3937fa946ccef101 Mon Sep 17 00:00:00 2001
ac3a84
From: Jan Macku <jamacku@redhat.com>
ac3a84
Date: Wed, 21 Sep 2022 15:36:26 +0200
ac3a84
Subject: [PATCH] ci(mergify): Update policy - Drop LGTM checks
ac3a84
ac3a84
rhel-only
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 .github/workflows/differential-shellcheck.yml |  1 +
ac3a84
 .mergify.yml                                  | 34 +++++++------------
ac3a84
 2 files changed, 13 insertions(+), 22 deletions(-)
ac3a84
ac3a84
diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml
ac3a84
index 47ec23731d..105f92d1c9 100644
ac3a84
--- a/.github/workflows/differential-shellcheck.yml
ac3a84
+++ b/.github/workflows/differential-shellcheck.yml
ac3a84
@@ -13,6 +13,7 @@ permissions:
ac3a84
 
ac3a84
 jobs:
ac3a84
   lint:
ac3a84
+    name: Differential ShellCheck
ac3a84
     runs-on: ubuntu-latest
ac3a84
 
ac3a84
     permissions:
ac3a84
diff --git a/.mergify.yml b/.mergify.yml
ac3a84
index be25e52c76..ddc79a1d7a 100644
ac3a84
--- a/.mergify.yml
ac3a84
+++ b/.mergify.yml
ac3a84
@@ -22,24 +22,19 @@ pull_request_rules:
ac3a84
         # CentOS CI
ac3a84
         - -check-success=CentOS CI (CentOS Stream 9)
ac3a84
         - -check-success=CentOS CI (CentOS Stream 9 + sanitizers)
ac3a84
-        # LGTM
ac3a84
-        - and:
ac3a84
-          - "-check-success=LGTM analysis: JavaScript"
ac3a84
-          - "-check-neutral=LGTM analysis: JavaScript"
ac3a84
-        - and:
ac3a84
-          - "-check-success=LGTM analysis: Python"
ac3a84
-          - "-check-neutral=LGTM analysis: Python"
ac3a84
-        - and:    
ac3a84
-          - "-check-success=LGTM analysis: C/C++"
ac3a84
-          - "-check-neutral=LGTM analysis: C/C++"
ac3a84
+        # CodeQL
ac3a84
+        - -check-success=CodeQL
ac3a84
         # Packit
ac3a84
         - -check-success=rpm-build:centos-stream-9-aarch64
ac3a84
         - -check-success=rpm-build:centos-stream-9-x86_64
ac3a84
+        # Other
ac3a84
+        - -check-success=Lint Code Base
ac3a84
+        - -check-success=Differential ShellCheck
ac3a84
     actions:
ac3a84
       label:
ac3a84
         add:
ac3a84
           - needs-ci
ac3a84
-          
ac3a84
+
ac3a84
   - name: Remove `needs-ci` label on CI success
ac3a84
     conditions:
ac3a84
       - or:
ac3a84
@@ -61,20 +56,15 @@ pull_request_rules:
ac3a84
           # CentOS CI
ac3a84
           - check-success=CentOS CI (CentOS Stream 9)
ac3a84
           - check-success=CentOS CI (CentOS Stream 9 + sanitizers)
ac3a84
-          # LGTM
ac3a84
-          - or:
ac3a84
-            - "check-success=LGTM analysis: JavaScript"
ac3a84
-            - "check-neutral=LGTM analysis: JavaScript"
ac3a84
-          - or:
ac3a84
-            - "check-success=LGTM analysis: Python"
ac3a84
-            - "check-neutral=LGTM analysis: Python"
ac3a84
-          - or:    
ac3a84
-            - "check-success=LGTM analysis: C/C++"
ac3a84
-            - "check-neutral=LGTM analysis: C/C++"
ac3a84
+          # CodeQL
ac3a84
+          - check-success=CodeQL
ac3a84
           # Packit
ac3a84
           - check-success=rpm-build:centos-stream-9-aarch64
ac3a84
           - check-success=rpm-build:centos-stream-9-x86_64
ac3a84
+          # Other
ac3a84
+          - check-success=Lint Code Base
ac3a84
+          - check-success=Differential ShellCheck
ac3a84
     actions:
ac3a84
       label:
ac3a84
         remove:
ac3a84
-          - needs-ci  
ac3a84
+          - needs-ci