From 3c81c152649f3e297b4d7ad7738669a8ffc0086f Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Mon, 12 Oct 2026 14:03:59 +0300 Subject: [PATCH] chore: add t-tooling label to new PRs as well --- .github/workflows/on_issue.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_issue.yaml b/.github/workflows/on_issue.yaml index 90079930..579fd174 100644 --- a/.github/workflows/on_issue.yaml +++ b/.github/workflows/on_issue.yaml @@ -1,10 +1,14 @@ -name: CI (issue) +name: CI (issue or PR) on: # Runs when a new issue is opened. issues: types: - opened + # Runs when a new PR is opened. pull_request_target so the token has write access for PRs from forks; no code is checked out here. + pull_request_target: + types: + - opened permissions: contents: read @@ -15,9 +19,10 @@ jobs: runs-on: ubuntu-latest permissions: issues: write + pull-requests: write steps: - # Add the "t-tooling" label to all new issues + # Add the "t-tooling" label to all new issues and PRs - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: |