From cbf327a24d26cb864a2d1f3832ca07949a80e0cb Mon Sep 17 00:00:00 2001 From: michelle-clayton-work Date: Thu, 13 Aug 2026 11:58:02 -0700 Subject: [PATCH 1/2] Allow PR classifier to update labels --- .github/workflows/classify-pull-request.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/classify-pull-request.yml b/.github/workflows/classify-pull-request.yml index d829eaae..75cf7dbd 100644 --- a/.github/workflows/classify-pull-request.yml +++ b/.github/workflows/classify-pull-request.yml @@ -16,7 +16,7 @@ on: permissions: contents: read issues: write - pull-requests: read + pull-requests: write concurrency: group: classify-pull-request-${{ github.event.pull_request.number || inputs.pr-number || 'all' }} @@ -24,11 +24,11 @@ concurrency: jobs: classify-size-area: - uses: microsoft/go-infra/.github/workflows/classify-pull-request.yml@33bdb51f63044f5caa3df215d983d226ebdfef6c + uses: microsoft/go-infra/.github/workflows/classify-pull-request.yml@35d34d21089773bebd2dd5efc6197a38f16490bf permissions: contents: read issues: write - pull-requests: read + pull-requests: write with: pr-number: ${{ github.event.pull_request.number || inputs.pr-number || 0 }} area-prefixes: | @@ -55,7 +55,7 @@ jobs: classify-kind: if: github.event_name != 'workflow_dispatch' || inputs.pr-number != 0 needs: classify-size-area - uses: microsoft/go-infra/.github/workflows/classify-pull-request-kind.lock.yml@33bdb51f63044f5caa3df215d983d226ebdfef6c + uses: microsoft/go-infra/.github/workflows/classify-pull-request-kind.lock.yml@35d34d21089773bebd2dd5efc6197a38f16490bf secrets: inherit permissions: actions: read From 4344e2eb5dc6792889e3851088b0fc2c5c6f452b Mon Sep 17 00:00:00 2001 From: michelle-clayton-work Date: Thu, 13 Aug 2026 12:00:40 -0700 Subject: [PATCH 2/2] Fix manual classifier PR input --- .github/workflows/classify-pull-request.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/classify-pull-request.yml b/.github/workflows/classify-pull-request.yml index 75cf7dbd..702805bd 100644 --- a/.github/workflows/classify-pull-request.yml +++ b/.github/workflows/classify-pull-request.yml @@ -30,7 +30,7 @@ jobs: issues: write pull-requests: write with: - pr-number: ${{ github.event.pull_request.number || inputs.pr-number || 0 }} + pr-number: ${{ github.event.pull_request.number || fromJSON(github.event.inputs.pr-number || '0') }} area-prefixes: | { "area:agent": ["agent/"], @@ -53,7 +53,7 @@ jobs: } classify-kind: - if: github.event_name != 'workflow_dispatch' || inputs.pr-number != 0 + if: github.event_name != 'workflow_dispatch' || github.event.inputs.pr-number != '0' needs: classify-size-area uses: microsoft/go-infra/.github/workflows/classify-pull-request-kind.lock.yml@35d34d21089773bebd2dd5efc6197a38f16490bf secrets: inherit @@ -64,4 +64,4 @@ jobs: pull-requests: write copilot-requests: write with: - pr_number: ${{ github.event.pull_request.number || inputs.pr-number }} + pr_number: ${{ github.event.pull_request.number || fromJSON(github.event.inputs.pr-number || '0') }}