Compare commits
No commits in common. "4f5c8cee51528da9a006874b6e1d1ce4729f322f" and "0f6f074b6d91586b7e56bd2f00c406e98f29d349" have entirely different histories.
4f5c8cee51
...
0f6f074b6d
2 changed files with 0 additions and 23 deletions
|
|
@ -575,13 +575,6 @@ else
|
||||||
outcome="blocked_${_PR_WALK_EXIT_REASON:-agent_failed}"
|
outcome="blocked_${_PR_WALK_EXIT_REASON:-agent_failed}"
|
||||||
profile_write_journal "$ISSUE" "$ISSUE_TITLE" "$outcome" "$FILES_CHANGED" || true
|
profile_write_journal "$ISSUE" "$ISSUE_TITLE" "$outcome" "$FILES_CHANGED" || true
|
||||||
|
|
||||||
# Cleanup on failure: close PR, delete remote branch, clean up worktree
|
|
||||||
if [ -n "$PR_NUMBER" ]; then
|
|
||||||
pr_close "$PR_NUMBER"
|
|
||||||
fi
|
|
||||||
git push "$FORGE_REMOTE" --delete "$BRANCH" 2>/dev/null || true
|
|
||||||
worktree_cleanup "$WORKTREE"
|
|
||||||
rm -f "$SID_FILE" "$IMPL_SUMMARY_FILE"
|
|
||||||
CLAIMED=false
|
CLAIMED=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -348,22 +348,6 @@ pr_is_merged() {
|
||||||
[ "$merged" = "true" ]
|
[ "$merged" = "true" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# pr_close — Close a PR via forge API.
|
|
||||||
# Args: pr_number
|
|
||||||
# Returns: 0=closed, 1=error
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
pr_close() {
|
|
||||||
local pr_num="$1"
|
|
||||||
|
|
||||||
_prl_log "closing PR #${pr_num}"
|
|
||||||
curl -sf -X PATCH \
|
|
||||||
-H "Authorization: token ${FORGE_TOKEN}" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
"${FORGE_API}/pulls/${pr_num}" \
|
|
||||||
-d '{"state":"closed"}' >/dev/null 2>&1 || true
|
|
||||||
}
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# pr_walk_to_merge — Walk a PR through CI, review, and merge.
|
# pr_walk_to_merge — Walk a PR through CI, review, and merge.
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue