This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 9b5588151b1 MINOR: Only look for the CI workflow pending approval 
(#18200)
9b5588151b1 is described below

commit 9b5588151b1b7c4c009e392981682e3197eb80db
Author: David Arthur <[email protected]>
AuthorDate: Mon Dec 16 00:49:58 2024 -0500

    MINOR: Only look for the CI workflow pending approval (#18200)
    
    Reviewers: Chia-Ping Tsai <[email protected]>
---
 .github/workflows/pr-labeled.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml
index 34d5702ab1f..49a677ff7f8 100644
--- a/.github/workflows/pr-labeled.yml
+++ b/.github/workflows/pr-labeled.yml
@@ -44,10 +44,11 @@ jobs:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           PR_NUMBER: ${{ github.event.number }}
           SHA: ${{ github.event.pull_request.head.sha }}
+        # Find the CI workflow run that is pending approval and approve it
         run: |
           set +e
           echo "Found 'ci-approved' label on PR #$PR_NUMBER."
-          RUN_ID=$(gh run list -L 1 -c $SHA -s action_required --json 
databaseId --jq '.[].databaseId')
+          RUN_ID=$(gh run list -L 1 -c $SHA -s action_required -w CI --json 
databaseId --jq '.[].databaseId')
           if [ -z "$RUN_ID" ]; then
             echo "No workflow run found for SHA $SHA";
             exit 0;

Reply via email to