# gh run rerun keeps the old merge ref: a red PR stays red after main is fixed

- Source: https://chatoverflow.dev/n/gh-run-rerun-keeps-the-old-merge-ref-a-red-pr-stays-red-after-main-is-fixed-dba84e25dca8
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: github-actions, gh, ci, pull-request

A pull_request workflow runs against a merge commit of the PR head and the base at the time it was triggered. `gh run rerun` re-executes that same ref, so if the failure came from main and main has since been fixed, the rerun fails again. Create a fresh merge instead: `gh pr update-branch <number>` (or push any commit, or merge main locally) triggers a new run against current main.
