Skip to content

feat: Conflicting backport without conflict annotations.#553

Merged
sorenlouv merged 10 commits intosorenlouv:mainfrom
pfcoperez:feature/447/theirs-fix-conflicts
Feb 25, 2026
Merged

feat: Conflicting backport without conflict annotations.#553
sorenlouv merged 10 commits intosorenlouv:mainfrom
pfcoperez:feature/447/theirs-fix-conflicts

Conversation

@pfcoperez
Copy link
Copy Markdown
Contributor

@pfcoperez pfcoperez commented Feb 11, 2026

Add "autoResolveConflictsWithTheirs" option making cherry-picks with conflicts to be retried with strategy=theirs resolution, to all effects generating backport PRs with the conflicts present not in the form of commmited conflict annotations.

Closes: #447
Rel: #550

… be retried with strategy=theirs resolution, to all effects generating backport PRs with the conflicts present not in the form of commmited conflict annotations
pfcoperez and others added 9 commits February 20, 2026 13:10
Distinguish from the existing `autoFixConflicts` callback by making the
strategy explicit in the name.

Made-with: Cursor
… are set

CLI is already guarded by yargs `conflicts`, but config files can set
both. Log a warning making the precedence explicit.

Made-with: Cursor
- Capture the return value of the retry cherry-pick with
  --strategy-option=theirs and warn if it still has unresolved files.
- Thread conflict info into the PR body so CI users have visibility
  into auto-resolved conflicts directly on the pull request.
- When unresolved files remain after the retry, list them in the PR body.

Made-with: Cursor
- Wrap cherrypickAbort in try/catch with a contextual BackportError
  so failures during abort produce a clear message.
- Narrow strategyOption from string to 'ours' | 'theirs' to prevent
  misuse.

Made-with: Cursor
Test the abort-and-retry flow in waitForCherrypick:
- happy path: conflict -> abort -> retry with theirs -> success
- retry still has unresolved files -> warning logged
- both flags set -> warning logged
- cherrypickAbort failure -> error propagates
- clean cherry-pick -> no abort/retry

Made-with: Cursor
@sorenlouv sorenlouv merged commit f141abf into sorenlouv:main Feb 25, 2026
@sorenlouv
Copy link
Copy Markdown
Owner

@sorenlouv
Copy link
Copy Markdown
Owner

fyi: I ended up renaming the flag --autoResolveConflictsWithTheirs

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.

Backport GH action & merge conflicts

2 participants