A snapshot: read at commit 707a04c7ce8 on 2026-10-18T00:06:01Z by majordomus 0.29.0. Nothing on this page is read again. See it live
majordomus prs drain
Merge the next ready pull request, verify it landed, observe again, and repeat — at most `--max` merges; `--dry-run` decides without acting
What it is
read onlyMerge the next ready pull request, verify it landed, observe again, and repeat — at most `--max` merges; `--dry-run` decides without acting
- Identity
executable.prs.drain- Program
- executable
- Runs
- non interactive
- Requires
- repositorylayer
No machine surface carries this command: no capability declares this command line, so no machine surface has a typed input schema to execute from
Where it appears
- Command line
majordomus prs drain- Workflow
just prs-drain- MCP tool
- —
- HTTP
- —
- Declared in
apps/majordomus-cli/src/cli.rs- Capability
- —
Arguments
| argument | values from | required | help |
|---|---|---|---|
--max | — | At most this many merges | |
--dry-run | — | Observe and decide, change nothing | |
--refresh | — | When nothing is ready, bring master into the first pull request that needs it (a merge commit with the derived driver and a fresh derive, pushed as a fast-forward), so that its checks run against the current master | |
--continuous | — | Drain, wait `--interval` seconds, and drain again until stopped, holding the lease throughout; each cycle is bounded by `--max` and observes before every step. Ctrl-C or SIGTERM lets the step in progress finish, then releases the lease; a second signal ends it at once. Never with `--dry-run`, and refused (exit 10) until the audit trail holds five verified merges since the last one that could not be verified: the last stage of the rollout (ADR 0101 §13) | |
--interval | — | With `--continuous`: seconds between cycles, 30 to 900 | |
--resume-after-failure | — | A merge an earlier drain could not verify stops every drain until a person has looked at it: this records that someone has (`failure_acknowledged` on the trail), then drains. Never with `--dry-run` | |
--repo | — | Start the search for the repository root here (default: the current directory) | |
--discovery | — | How declarative files are enumerated | |
--strict | — | Refuse to proceed when any file of the layer carries an error diagnostic | |
--share | — | The tool distribution's share directory (kinds.yaml, schemas/); default: $MAJORDOMUS_SHARE, then the repository's own share/, then the one beside the executable | |
--format | — | Output shape |