Skip to content

Keep commits pushed to a branch after it was merged - #66

Draft
Phlogistique wants to merge 1 commit into
mainfrom
fix-merged-head-race
Draft

Phlogistique wants to merge 1 commit into
mainfrom
fix-merged-head-race

Conversation

@Phlogistique

Copy link
Copy Markdown
Collaborator

If someone pushed to a branch after GitHub squash-merged it but before autorestack ran, autorestack recorded the new commit as a parent of the child without its changes, then deleted the branch. Reproduced locally, not seen in production.

Now the child is re-parented from the commit GitHub merged, and the branch is deleted only if it has not moved. Otherwise the run fails and the branch stays.

If someone pushed to a branch after GitHub squash-merged it but before autorestack ran, autorestack recorded the new commit as a parent of the child without its changes, then deleted the branch. Reproduced locally, not seen in production.

Now the child is re-parented from the commit GitHub merged, and the branch is deleted only if it has not moved. Otherwise the run fails and the branch stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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