LinuxCommandLibrary

glab-mr-create

Create a new GitLab merge request

TLDR

Create MR interactively

$ glab mr create
copy
Create with title
$ glab mr create -t "[title]"
copy
Create as draft
$ glab mr create --draft -t "[title]"
copy
Create with reviewers
$ glab mr create -t "[title]" --reviewer [user1],[user2]
copy
Create to specific branch
$ glab mr create --target-branch [main]
copy
Fill from commits
$ glab mr create --fill
copy

SYNOPSIS

glab mr create [options]

DESCRIPTION

glab mr create creates a new GitLab merge request from the current branch. It supports drafts, reviewer assignment, labels, and auto-filling title and description from commit messages.
When run without flags, it launches an interactive editor for composing the merge request.

PARAMETERS

-t, --title title

MR title.
-d, --description text
MR description.
--draft
Create as draft.
-a, --assignee users
Assign users.
--reviewer users
Request reviewers.
--target-branch branch
Target branch.
--source-branch branch
Source branch.
--fill
Fill from commits.
-l, --label labels
Add labels.
--web
Open in browser.

SEE ALSO

glab-mr(1), glab(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community