# PR head testing vs merge result testing

> Compare tests on a PR head with checks on its prospective merge result. Record both revisions so a reviewer can tell what the successful run actually covered.

Source: https://cueapril.com/compare/pull-request-head-vs-merge-result-testing
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Which revision does a green check actually cover after the target branch moves?

Test the PR head when a developer needs fast feedback on the exact commit they pushed. Test the candidate merge when release confidence depends on how the change works with the target branch. Record the checked-out commit in the run. A green result stays useful only for the combination it actually exercised.

Find out which revision a green PR check covers. Distinguish a head commit from a candidate merge and repeat the right run when the target branch changes.

Cue April editorial assessment. The sources identify documented capabilities. Suggested pilot checks are evaluation criteria.

## Two green branches can disagree when combined

Suppose the base branch renames a currency configuration key while a PR introduces an invoice reader using the old name. Each branch can pass its own tests if it does not exercise the other change. A check that creates an invoice on the combined revision can reveal the incompatibility. Save the PR head, base and tested merge revision with the finding.

Testing a PR head vs. testing the merge result

| Decision | PR-head test | Merge-result test |
| --- | --- | --- |
| Developer reproduces a failing change | Use the exact pushed commit SHA. | Also capture the base and combined SHA. |
| Shared configuration moved | Shows compatibility with the head’s own context. | Exercises the candidate with the changed base. |
| Main branch advances after success | Head result remains tied to its original commit. | Refresh the combination and run required checks again. |
| Release owner signs off | Link any head-specific diagnostic findings. | Confirm the accepted candidate matches the one tested. |

## Check what CI really checked out

On GitHub Actions, a pull_request workflow commonly checks out the synthetic merge commit unless its checkout configuration selects the head explicitly. Merge queues can use merge_group events for their own candidate revisions. Inspect your workflow configuration and log the actual commit. If the base advances, rerun the affected gate against the new candidate.

## Primary documentation

- [GitHub Actions pull request and merge group events](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows)
- [GitHub checkout action, including checking out a PR head commit](https://github.com/actions/checkout)

By Cue April. Updated 2026-12-01.

## Related

- [Testing comparisons](https://cueapril.com/compare): Compare testing tools and methods against a release decision. Inspect the required evidence, maintenance work and checks each approach can provide.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
- [Regression testing](https://cueapril.com/guides/regression-testing): What regression testing means, with examples, and how to automate it with scheduled runs, watched branches and approved checks across test methods.
