Skip to content

v0.1.37

Choose a tag to compare

@eharriett0 eharriett0 released this 17 Nov 14:21
· 16 commits to main since this release
e282131

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_age and coord_issue from the .wt.conf of 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.conf from 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=0 and a shorter WT_HOLD_MAX_AGE no longer loosen what the base sets.
      • A base with no .wt.conf holds hold_max_age at 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.
  • #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-mine to abandon.
    • A retried --written exits 0.
    • wt status --json and MCP wt_status carry session, other_sessions and sessions_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.