Skip to content
Back to skills

Merge Request

ASecurity

Working with GitLab merge requests via glab. Use when creating, updating, reviewing, or merging MRs.

  • 17 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 7, 2026
developmentbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add bendrucker/claude --skill merge-request --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Merge Request?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Merge Request
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bendrucker-merge-request/badge)](https://www.skillsdirectory.com/skills/bendrucker-merge-request)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Files in this skill

  • SKILL.md1.4 KB
  • stack.md913 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.