| name | mr-create |
| description | Create a GitLab merge request with glab on delupay repos — default assignee @erwan.kreutz, reviewer @vincent.pichot, target edge, with a branch-state guard. Use when the user says "create the MR", "open an MR", "submit this for review", invokes /mr-create, or asks to turn the current branch into a merge request. |
mr-create
Create a GitLab MR with glab. Delupay repos live on GitLab — gh does not work here.
Hard rule: never push. The user pushes branches themselves (git push, git push -u). This skill only runs glab mr create once the branch is already on origin. If a push is needed, print the exact command and stop — do not run it.
Workflow
-
Current branch — git rev-parse --abbrev-ref HEAD.
-
Branch-state guard:
-
Target branch — edge if origin has it (git ls-remote --heads origin edge), else the repo default (git symbolic-ref --short refs/remotes/origin/HEAD).
-
People — defaults: assignee erwan.kreutz, reviewer vincent.pichot. Override either if the user names someone in the prompt (e.g. "reviewer @alice").
-
Title + description — title from the latest commit subject (or the branch's commit range). Description: short ## What / ## Why / ## Notes. No Claude / "Generated with" attribution in the body (user dislikes attribution noise).
-
Create:
glab mr create \
--source-branch <branch> \
--target-branch <target> \
--title "<commit subject>" \
--description "<## What / ## Why / ## Notes>" \
--assignee erwan.kreutz \
--reviewer vincent.pichot \
--yes
-
Return the MR URL that glab prints.
Checklist