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