Working with GitLab merge requests via glab. Use when creating, updating, reviewing, or merging MRs.
Scanned 2/12/2026
Install via CLI
openskills install bendrucker/claude---
name: merge-request
description: Working with GitLab merge requests via glab. Use when creating, updating, reviewing, or merging MRs.
---
# Merge Requests
Working with GitLab merge requests via `glab mr`.
## Key Commands
```bash
glab mr create --fill # Create from commits (push branch first!)
glab mr list # List MRs
glab mr view # View current branch's MR
glab mr checkout <id> # Check out MR branch
glab mr merge # Merge current branch's MR
```
Use `glab mr --help` and `glab mr <command> --help` for full options.
## Patterns
**Always push before creating:**
```bash
git push -u origin feature-branch && glab mr create --fill
```
**Draft MRs:** Use `--draft` to prevent accidental merges.
**Auto-fill vs custom:** `--fill` auto-populates from commits but cannot combine with `--title`/`--description`. Choose one approach.
**Body from file:** No `--body-file` flag; use `--description "$(cat file.md)"`.
**Username resolution:** Flags like `--reviewer` and `--assignee` require exact usernames. Invalid names are silently ignored. Look up users first:
```bash
glab api projects/:id/members/all --paginate | jq '.[] | select(.name | test("<name>"; "i")) | {name, username}'
```
## Stacking
`glab stack` manages stacked diffs—small changes that build on each other. See [stack.md](stack.md).
## Reference Files
- [stack.md](stack.md) - Stacked diff workflow
No comments yet. Be the first to comment!