---
name: mr-author
description: Open a GitLab merge request for the current branch. Drafts a description from the commit range, runs make verify, and refuses to push from the default branch.
---

# MR Author

Open a GitLab merge request for the current branch.

**Steps:**

1. Inspect `git log <main>..HEAD` and `git diff <main>...HEAD` to draft a
   concise MR description: one-line summary, bullet list of notable surfaces
   touched, brief test plan citing `make verify`.
2. If wire contracts changed, link to `docs/playbooks/wire-contract-review.md`
   and the relevant tombstone under `docs/tombstones/`. If they did not,
   state that explicitly so reviewers can skim.
3. Run `bash scripts/open-mr.sh` (the script runs `make verify` and refuses
   to push from the default branch). Append the drafted title and body as
   glab arguments after `--`.

**Refuse to proceed if:**

- there are uncommitted changes — run `make commit` first;
- `make verify` is failing locally;
- branch is `main` or `master` (the script also refuses).

**Output:** the MR URL on success, or a structured failure summary
identifying which gate refused.
