Skip to content

Handle merge conflicts with manual resolution workflow#8

Merged
Phlogistique merged 2 commits into
mainfrom
claude/conflict-manual-resolution-18FUb
Dec 25, 2025
Merged

Handle merge conflicts with manual resolution workflow#8
Phlogistique merged 2 commits into
mainfrom
claude/conflict-manual-resolution-18FUb

Conversation

@Phlogistique

Copy link
Copy Markdown
Collaborator

When a PR has a conflict that requires manual resolution:

  1. The action adds the 'autorestack-needs-conflict-resolution' label
  2. User manually resolves the conflict and pushes
  3. The push triggers a 'synchronize' event
  4. The workflow detects the label and triggers the continuation job
  5. The action removes the label, posts confirmation, and updates child PRs

This ensures the PR stack continues to be updated even after manual intervention is required.

When a PR has a conflict that requires manual resolution:
1. The action adds the 'autorestack-needs-conflict-resolution' label
2. User manually resolves the conflict and pushes
3. The push triggers a 'synchronize' event
4. The workflow detects the label and triggers the continuation job
5. The action removes the label, posts confirmation, and updates child PRs

This ensures the PR stack continues to be updated even after manual
intervention is required.
Document the automatic continuation feature after manual conflict
resolution, including the updated workflow configuration with the
synchronize trigger and continuation job.
@Phlogistique

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread update-pr-stack.sh
Comment on lines +199 to +200
ALL_CHILDREN+=("$CHILD_BRANCH")
update_branch_recursive "$CHILD_BRANCH"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Guard recursive update when SQUASH_COMMIT is undefined

In the conflict-resolved workflow, SQUASH_COMMIT is never initialized (git update-ref SQUASH_COMMIT ... only happens in main()), and on a synchronize event github.event.pull_request.merge_commit_sha is typically empty. When update_branch_recursive runs for grandchildren, it calls update_indirect_targetskip_if_clean, which executes git merge-base --is-ancestor SQUASH_COMMIT ... and fails with “invalid object name” because the ref does not exist. This makes the continuation path crash for stacks with depth >1, so dependent PRs beyond the immediate children won’t be updated after manual resolution.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Phlogistique
Phlogistique merged commit 039371d into main Dec 25, 2025
2 checks passed
@github-actions
github-actions Bot deleted the claude/conflict-manual-resolution-18FUb branch December 25, 2025 09:37
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.

2 participants