fix: fix: pr-lifecycle gives up on merge conflict (HTTP 405) instead of delegating rebase to agent (#314) #315
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#315
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-314"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #314
Changes
AI Review
Summary\n\nSmall, targeted fix. returns for HTTP 405 (merge blocked but not yet merged). The old call site short-circuited on with and gave up. The fix drops that branch so both (other failures) and (HTTP 405) fall through to the agent rebase invocation.\n\n### Checklist\n\n- Logic: Correct. at line 329 still returns for the blocked-but-not-merged 405 case; the caller now treats it identically to a conflict failure and delegates to the agent. The string is propagated verbatim so the agent has context.\n- Dead code: The in is still reachable and meaningful (caller now just handles it uniformly), so nothing becomes dead code.\n- Edge case — protection rules: If HTTP 405 is due to branch-protection rules that a rebase won't fix, the agent will iterate and eventually exhaust its budget rather than silently exit . That's a better outcome than silently giving up.\n- Comment accuracy: Updated comment correctly describes the new behaviour.\n- No security or ShellCheck issues introduced.
Verdict
APPROVE — Correctly removes premature give-up on HTTP 405 and routes it to the existing agent rebase path
Reviewed at
3b1ebb4| AGENTS.mdAI Review: APPROVE — Correctly removes premature give-up on HTTP 405 and routes it to the existing agent rebase path