fix: fix: pr-lifecycle gives up on merge conflict (HTTP 405) instead of delegating rebase to agent (#314)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5e935e746b
commit
3b1ebb4a3f
1 changed files with 1 additions and 5 deletions
|
|
@ -474,11 +474,7 @@ Fix the issue, run tests, commit, rebase on ${PRIMARY_BRANCH}, and push:
|
|||
_PR_WALK_EXIT_REASON="merged"
|
||||
return 0
|
||||
fi
|
||||
if [ "$rc" -eq 2 ]; then
|
||||
_PR_WALK_EXIT_REASON="merge_blocked"
|
||||
return 1
|
||||
fi
|
||||
# Merge failed (conflict) — ask agent to rebase
|
||||
# Merge failed (conflict or HTTP 405) — ask agent to rebase
|
||||
_prl_log "merge failed — invoking agent to rebase"
|
||||
agent_run --resume "$session_id" --worktree "$worktree" \
|
||||
"PR #${pr_num} approved but merge failed: ${_PR_MERGE_ERROR:-unknown}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue