Skip to content

[stable/5.1] Test the pushed pull request commit, not its branch's current tip - #9193

Open
craigmichaelmartin wants to merge 1 commit into
stable/5.1from
test-pull-request-head-sha-5.1
Open

craigmichaelmartin wants to merge 1 commit into
stable/5.1from
test-pull-request-head-sha-5.1

Conversation

@craigmichaelmartin

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Backports #9191 to stable/5.1, so checks on pull requests into the line test the commit they are reported on.

WHAT is this pull request doing?

The same change as #9191: every tests-pr.yml checkout uses the event's head SHA instead of the head branch name.

How to manually test your changes?

In this pull request's checks, each job's checkout step names the pull request's head commit.

🤖 Generated with Claude Code

Every tests-pr.yml checkout used the head branch name, so a job that waited for a runner tested
whatever the branch pointed at when it started, and reported the result on the older commit. Check
out the event's head SHA instead, for pull requests and merge groups alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit c5737f1)
@craigmichaelmartin
craigmichaelmartin requested a review from a team November 25, 2026 13:18
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant