Skip to content

Report the PR head commit instead of the temporary merge commit - #1

Merged
timhosey merged 1 commit into
mainfrom
fix/report-pr-head-commit
Oct 26, 2026
Merged

timhosey merged 1 commit into
mainfrom
fix/report-pr-head-commit

Conversation

@timhosey

Copy link
Copy Markdown
Collaborator

On pull_request events GITHUB_SHA is GitHub's temporary merge commit, so the job summary and PR comment showed a commit that isn't in the PR. The report now uses pull_request.head.sha from the event when present and falls back to GITHUB_SHA for pushes.

  • src/report.js: commitSha() reads the PR head from the event payload.
  • test/report.test.js: covers the PR and push cases (81 tests pass locally).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

⚠️ Applitools Autonomous: unresolved

Build passes · fail-on: failed, aborted · commit ed0dbc0 · workflow run

Run Status Results Duration Environments
test "testing" ⚠️ unresolved 2 unresolved 56s Chrome, Safari
plan "Google Tester" ⚠️ unresolved 3 unresolved 1m 16s Chrome, Safari, Android Emulation
Test Run Status Results
testing test "testing" ⚠️ unresolved 2 unresolved
testing plan "Google Tester" ⚠️ unresolved 3 unresolved

Issues

Test map "Action source" matched 1 file(s): src/report.js
Results count each test once per environment.

@timhosey
timhosey merged commit 9f639f9 into main Oct 26, 2026
4 checks passed
@timhosey
timhosey deleted the fix/report-pr-head-commit branch October 26, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant