Repository navigation
v0.1.37
One safety fix to merge-pr's gates, session-owned block-id reservations, and grading polish.
- #223: merge-pr's gate settings come from the base branch too, and the stricter applies.
- The bug. merge-pr read
merge_is_deploy,merge_is_deploy_paths,merge_min_checks,hold_max_ageandcoord_issuefrom the.wt.confof the checkout it runs in. That is usually the PR's own worktree, so the branch being merged decided its own gate. A PR could turn the deploy gate off or shorten a hold, and a branch cut before the base added a deploy glob skipped the gate for a path that now deploys. - The fix. merge-pr now also reads the PR's base branch's
.wt.conffrom GitHub. When GitHub can't be read, it falls back to a fetched copy, but only when the PR's repository is origin; otherwise it fails closed. - Behavior changes:
WT_MERGE_IS_DEPLOY=0and a shorterWT_HOLD_MAX_AGEno longer loosen what the base sets.- A base with no
.wt.confholdshold_max_ageat the 24h default or longer. - When GitHub is unreachable, the deploy gate gates, saying the merge may auto-apply, and the checks gate refuses without
--checks-ok. - A passthrough that merges nothing (
--disable-auto,--help) reads no gate settings.
- Also fixed. With
-R, the deploy gate's file list and draft read now use that repository's PR.merge_is_deploy_paths = !now fails closed.
- The bug. merge-pr read
- #197 (items 1, 3, 4): block-id reservations are owned by session.
- Another session in the same checkout can no longer mark or abandon yours; it is told whose it is.
- Your own session's reservation from another worktree counts as yours.
- A token-less reservation needs
--not-mineto abandon. - A retried
--writtenexits 0. wt status --jsonand MCPwt_statuscarrysession,other_sessionsandsessions_unread.
- #202: grading polish.
- Dead code is gone.
- The label no longer reads "just now ago".
- A banner line for a file two OTHER windows contest now says their edits overlap each other.