Skip to content

fix: reset existing fix branch to latest PR head#111

Merged
ejc3 merged 1 commit intoclaude-review-prompting-fixfrom
claude/fix-20727145658
Jan 5, 2026
Merged

fix: reset existing fix branch to latest PR head#111
ejc3 merged 1 commit intoclaude-review-prompting-fixfrom
claude/fix-20727145658

Conversation

@claude-claude
Copy link
Copy Markdown
Contributor

@claude-claude claude-claude bot commented Jan 5, 2026

Auto-Fix for PR #110

Issues Fixed

[MEDIUM] - Stale branch reuse: When a fix branch already exists from a previous Claude run, it wasn't being updated to the latest PR head commit. This caused Claude to review/fix stale code if new commits were pushed to the PR between runs.

Changes

  • Added git reset --hard origin/${headBranch} after checking out an existing fix branch
  • Updated log message to indicate the branch is being updated, not just checked out

This ensures Claude always works on the current state of the PR, not outdated code from a previous run.


Generated by Claude | Review Run

When a fix branch already exists from a previous Claude run, ensure
it's updated to the latest commit on the PR branch. Without this,
Claude would review/fix stale code if new commits were pushed to the PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ejc3 ejc3 merged commit f92c97b into claude-review-prompting-fix Jan 5, 2026
7 checks passed
@ejc3 ejc3 deleted the claude/fix-20727145658 branch January 17, 2026 03:36
ejc3 added a commit that referenced this pull request Mar 2, 2026
fix: reset existing fix branch to latest PR head
ejc3 added a commit that referenced this pull request Mar 2, 2026
fix: reset existing fix branch to latest PR head
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