feat(bin): mt-land asks before it lands #67

Closed
maximus wants to merge 1 commit from feat/mt-land-confirm into master
Member

Bear: "do I need to specify the tip? that seems burdensome and takes away the user-friendliness."

At a terminal, mt-land <train> now lists the train's PRs after every check and asks:

land #1228 (2 PRs) into main at 30d709f3dbb1? [y/N]

Only y/yes lands. The merge stays pinned to the tip it showed (fast-forward-only with head_commit_id), so a train that changes between the question and the answer is refused by Forgejo, and nothing needs copying by hand.

  • --yes / -y skips the question.
  • Unchanged: scripts without a terminal, --json, --check, and fully pinned calls (--pr and --tip).
  • "No", an empty answer or end of input is a refusal: declined, exit 3, nothing merged.

Tests: tools/mt-land/test_mt_land.py, 45 OK. The new ConfirmTest covers:

  • a yes lands;
  • no / empty / EOF land nothing;
  • --yes and the pinned, --check and --json calls never ask;
  • a refused check never asks;
  • no terminal means no question.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XMf4ELSbWvtUkEeVky4wWr

Bear: "do I need to specify the tip? that seems burdensome and takes away the user-friendliness." At a terminal, `mt-land <train>` now lists the train's PRs after every check and asks: land #1228 (2 PRs) into main at 30d709f3dbb1? [y/N] Only `y`/`yes` lands. The merge stays pinned to the tip it showed (fast-forward-only with `head_commit_id`), so a train that changes between the question and the answer is refused by Forgejo, and nothing needs copying by hand. - `--yes` / `-y` skips the question. - Unchanged: scripts without a terminal, `--json`, `--check`, and fully pinned calls (`--pr` and `--tip`). - "No", an empty answer or end of input is a refusal: `declined`, exit 3, nothing merged. Tests: tools/mt-land/test_mt_land.py, 45 OK. The new ConfirmTest covers: - a yes lands; - no / empty / EOF land nothing; - `--yes` and the pinned, `--check` and `--json` calls never ask; - a refused check never asks; - no terminal means no question. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XMf4ELSbWvtUkEeVky4wWr <!-- claude-session name=merge-train-ui id=e04eea3f-bbed-4211-9356-d7545d911faf host=spl-vm05 -->
feat(bin): mt-land asks before it lands
All checks were successful
ci / gate (pull_request) Successful in 2m17s
6d16454620
At a terminal mt-land now lists the train's PRs after every check and asks
"land #N (k PRs) into <base> at <tip>? [y/N]". Only y/yes lands, and the
merge stays pinned to the tip it showed (fast-forward-only with
head_commit_id), so --tip no longer needs to be copied by hand. --yes skips
the question; scripts without a terminal, --json, --check and fully pinned
calls (--pr and --tip) behave as before. A "no" or end of input is a refusal
(declined, exit 3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4ELSbWvtUkEeVky4wWr
Author
Member
landed in https://git.mirus-tech.com/jmz/dotfiles-public/pulls/68 as c92de9405a6b0a5a505b6211bb304a48a9bcf09f <!-- merge-train outcome=jmz/dotfiles-public#67:dotfiles-public-20261126-1:1fef7d928a2c -->
maximus 2026-11-26 16:08:32 +00:00
All checks were successful
ci / gate (pull_request) Successful in 2m17s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/dotfiles-public!67
No description provided.