.nh .TH "glab" "1" "Jun 2025" "Auto generated by spf13/cobra" "" .SH NAME glab-mr-create - Create a new merge request. .SH SYNOPSIS \fBglab mr create [flags]\fP .SH DESCRIPTION Create a new merge request. .SH OPTIONS \fB--allow-collaboration\fP[=false] Allow commits from other members. .PP \fB-a\fP, \fB--assignee\fP=[] Assign merge request to people by their \fBusernames\fR\&. .PP \fB--copy-issue-labels\fP[=false] Copy labels from issue to the merge request. Used with --related-issue. .PP \fB--create-source-branch\fP[=false] Create a source branch if it does not exist. .PP \fB-d\fP, \fB--description\fP="" Supply a description for the merge request. .PP \fB--draft\fP[=false] Mark merge request as a draft. .PP \fB-f\fP, \fB--fill\fP[=false] Do not prompt for title or description, and just use commit info. Sets \fBpush\fR to \fBtrue\fR, and pushes the branch. .PP \fB--fill-commit-body\fP[=false] Fill description with each commit body when multiple commits. Can only be used with --fill. .PP \fB-H\fP, \fB--head\fP="" Select another head repository using the \fBOWNER/REPO\fR or \fBGROUP/NAMESPACE/REPO\fR format, the project ID, or the full URL. .PP \fB-l\fP, \fB--label\fP=[] Add label by name. Multiple labels should be comma-separated. .PP \fB-m\fP, \fB--milestone\fP="" The global ID or title of a milestone to assign. .PP \fB--no-editor\fP[=false] Don't open editor to enter a description. If true, uses prompt. Defaults to false. .PP \fB--push\fP[=false] Push committed changes after creating merge request. Make sure you have committed changes. .PP \fB--recover\fP[=false] Save the options to a file if the merge request creation fails. If the file exists, the options are loaded from the recovery file. (EXPERIMENTAL.) .PP \fB-i\fP, \fB--related-issue\fP="" Create a merge request for an issue. If --title is not provided, uses the issue title. .PP \fB--remove-source-branch\fP[=false] Remove source branch on merge. .PP \fB--reviewer\fP=[] Request review from users by their \fBusernames\fR\&. .PP \fB--signoff\fP[=false] Append a DCO signoff to the merge request description. .PP \fB-s\fP, \fB--source-branch\fP="" Create a merge request from this branch. Default is the current branch. .PP \fB--squash-before-merge\fP[=false] Squash commits into a single commit when merging. .PP \fB-b\fP, \fB--target-branch\fP="" The target or base branch into which you want your code merged into. .PP \fB-t\fP, \fB--title\fP="" Supply a title for the merge request. .PP \fB-w\fP, \fB--web\fP[=false] Continue merge request creation in a browser. .PP \fB--wip\fP[=false] Mark merge request as a draft. Alternative to --draft. .PP \fB-y\fP, \fB--yes\fP[=false] Skip submission confirmation prompt. Use --fill to skip all optional prompts. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. Can use either \fBOWNER/REPO\fR or \fBGROUP/NAMESPACE/REPO\fR format. Also accepts full URL or Git URL. .SH EXAMPLE .EX $ glab mr new $ glab mr create -a username -t "fix annoying bug" $ glab mr create -f --draft --label RFC $ glab mr create --fill --web $ glab mr create --fill --fill-commit-body --yes .EE .SH SEE ALSO \fBglab-mr(1)\fP