Merge pull request 'fix: fix: pr-lifecycle gives up on merge conflict (HTTP 405) instead of delegating rebase to agent (#314)' (#315) from fix/issue-314 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
48a0826f4b
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