From 91427a5b6aec416e01ecb1e997c44f3a3498030b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:00:40 +0000 Subject: [PATCH] chore(CI): prevent patchback bot from labeling new PRs (#1062) (#1064) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a backport of PR #1062 as merged into main (987c029). SUMMARY Currently, the patchback bot creates PRs with cherry-picks of PRs that are labeled with stable-* label, and this PR (as any new PR) gets labeled as needs_triage. This is unnecessary as it intentional PR created by the CI job. This pull request introduces a small update to ensure that the workflow only runs if the pull request is not created by the patchback[bot] user to avoid unnecessary labels. ISSUE TYPE Bugfix Pull Request COMPONENT NAME .github/workflows/label-new-prs.yaml ADDITIONAL INFORMATION No changelog is required  Reviewed-by: Bianca Henderson --- .github/workflows/label-new-prs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/label-new-prs.yaml b/.github/workflows/label-new-prs.yaml index 8db1dd9b..ddacc380 100644 --- a/.github/workflows/label-new-prs.yaml +++ b/.github/workflows/label-new-prs.yaml @@ -10,6 +10,7 @@ on: jobs: add_label: + if: github.actor != 'patchback[bot]' runs-on: ubuntu-latest permissions: pull-requests: write