From adb3ea3b1efffa3c7909e8dc6dea58a96e035bb8 Mon Sep 17 00:00:00 2001
From: Noah Moss <32746338+noahmoss@users.noreply.github.com>
Date: Tue, 13 Feb 2024 15:01:50 -0500
Subject: [PATCH] Add run-cloverage tag to run Cloverage on non-master branches
 (#38732)

---
 .github/workflows/backend.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 859ab8baf0d..d70aafc7078 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -6,7 +6,7 @@ on:
       - "master"
       - "release-**"
   pull_request:
-    types: [opened, synchronize, reopened, ready_for_review]
+    types: [opened, synchronize, reopened, ready_for_review, labeled]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
@@ -65,7 +65,8 @@ jobs:
 
   be-linter-cloverage:
     needs: files-changed
-    if: github.ref_name == 'master' && needs.files-changed.outputs.backend_all == 'true'
+    if: (github.ref_name == 'master' && needs.files-changed.outputs.backend_all == 'true')
+        || contains(github.event.pull_request.labels.*.name, 'run-cloverage')
     runs-on: ubuntu-22.04
     timeout-minutes: 90
     steps:
-- 
GitLab