From 78eea1aa550790097a1005237acaec56309cd61e Mon Sep 17 00:00:00 2001 From: Xuan Yang Date: Mon, 8 Sep 2025 22:19:43 -0700 Subject: [PATCH] chore: skip PR triage for already triaged or Google-contributor PRs The `agent-triage-pull-request` job will now only run if the pull request does not have the 'bot triaged' or 'google-contributor' labels, avoiding redundant and unnecessary triage actions. PiperOrigin-RevId: 804732073 --- .github/workflows/pr-triage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml index d380983e..d0491d9e 100644 --- a/.github/workflows/pr-triage.yml +++ b/.github/workflows/pr-triage.yml @@ -6,6 +6,7 @@ on: jobs: agent-triage-pull-request: + if: "!contains(github.event.pull_request.labels.*.name, 'bot triaged') && !contains(github.event.pull_request.labels.*.name, 'google-contributor')" runs-on: ubuntu-latest permissions: pull-requests: write