From d508b3a59dad0459ce75f7f8c66a46e73ad68b02 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 22:25:36 +0000 Subject: [PATCH] ci(pr-automation): run Check Changeset on open PRs only A label event on a merged PR (the fleet's post-merge `unlabeled pm:awaiting-merge`) ran the changeset-check job, whose diff base `merge-base origin/main HEAD` is then the PR's own merge commit: it counted zero changesets and left a false red on a head that shipped one. Guard the job-level `if:` on `github.event.pull_request.state == 'open'`. Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv Co-authored-by: Claude --- .github/workflows/pr-automation.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index da8e4b2d299..6a66bb1334f 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -305,8 +305,14 @@ jobs: # event of its own, and the run it starts sees no label in either place and # enforces. The direction #5580 is about has no such rescue: the `labeled` # run's green verdict does not clear the `opened` run's red one. + # + # Open PRs only. The fleet's post-merge `unlabeled pm:awaiting-merge` fires + # this job on a MERGED PR, where `merge-base origin/main HEAD` is the PR's own + # merge commit, so it counts 0 changesets and reds a head that shipped one + # (#35842 run 44739836712, #35857). A closed PR's verdict is final. if: >- - !contains(github.event.pull_request.labels.*.name, 'skip-changeset') + github.event.pull_request.state == 'open' + && !contains(github.event.pull_request.labels.*.name, 'skip-changeset') && !(github.head_ref == 'changeset-release/main' && github.event.pull_request.user.login == 'github-actions[bot]') permissions: