feat(forge): confirm every destructive command #3

Merged
crapougnax merged 2 commits from feat/forge-confirm-destructive into develop 2026-11-07 07:38:04 +00:00
Member

Asks before every destructive command, through the core confirmation (tycho/tycho#3: ctx.confirm, which names the organisation and target and refuses without a terminal unless TYCHO_ASSUME_YES=1); standalone, a terminal prompt.

  • pr merge, mirror sync;
  • git passthrough: push --force|-f|--force-with-lease|--delete|--mirror|--prune, refspecs :ref / +ref, reset --hard, clean -f, branch -D|-d|--delete, stash drop|clear, tag -d, checkout|switch -f, restore (except --staged only), rm, gc --prune, reflog expire|delete;
  • forge CLI passthrough (gh, tea, glab): delete, remove, rm, close, archive, transfer, lock.

Tests: 8 pass (destructive and everyday commands, CLI passthrough, core confirmation); typecheck OK.

🤖 Generated with Claude Code

Asks before every destructive command, through the core confirmation (tycho/tycho#3: `ctx.confirm`, which names the organisation and target and refuses without a terminal unless `TYCHO_ASSUME_YES=1`); standalone, a terminal prompt. - `pr merge`, `mirror sync`; - git passthrough: `push --force|-f|--force-with-lease|--delete|--mirror|--prune`, refspecs `:ref` / `+ref`, `reset --hard`, `clean -f`, `branch -D|-d|--delete`, `stash drop|clear`, `tag -d`, `checkout|switch -f`, `restore` (except `--staged` only), `rm`, `gc --prune`, `reflog expire|delete`; - forge CLI passthrough (gh, tea, glab): `delete`, `remove`, `rm`, `close`, `archive`, `transfer`, `lock`. Tests: 8 pass (destructive and everyday commands, CLI passthrough, core confirmation); typecheck OK. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Asks before: pr merge, mirror sync, git commands passed through that lose
work or rewrite a remote (push --force/--delete/:ref/+ref/--mirror, reset
--hard, clean -f, branch -D/-d, stash drop|clear, tag -d, checkout -f,
restore, rm, gc --prune, reflog expire), and forge CLI passthrough that
deletes, closes, archives or transfers. Under the core, its confirmation is
used (it names the organisation and target); standalone, a terminal prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crapougnax merged commit 935641f01b into develop 2026-11-07 07:38:04 +00:00
crapougnax deleted branch feat/forge-confirm-destructive 2026-11-07 07:38:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
tycho/modules!3
No description provided.