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.
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.
| 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.