1glab(1) glab(1)
2
3
4
6 glab-mr-create - Create new merge request
7
8
9
11 glab mr create [flags]
12
13
14
16 Create new merge request
17
18
19
21 --allow-collaboration[=false] Allow commits from other members
22
23
24 -a, --assignee=[] Assign merge request to people by their user‐
25 names
26
27
28 --copy-issue-labels[=false] Copy labels from issue to the merge
29 request. Used with --related-issue
30
31
32 --create-source-branch[=false] Create source branch if it does not
33 exist
34
35
36 -d, --description="" Supply a description for merge request
37
38
39 --draft[=false] Mark merge request as a draft
40
41
42 -f, --fill[=false] Do not prompt for title/description and just
43 use commit info
44
45
46 --fill-commit-body[=false] Fill description with each commit body
47 when multiple commits. Can only be used with --fill
48
49
50 -H, --head="" Select another head repository using the OWNER/REPO
51 or GROUP/NAMESPACE/REPO format or the project ID or full URL
52
53
54 -l, --label=[] Add label by name. Multiple labels should be comma
55 separated
56
57
58 -m, --milestone="" The global ID or title of a milestone to assign
59
60
61 --no-editor[=false] Don't open editor to enter description. If set
62 to true, uses prompt. (default false)
63
64
65 --push[=false] Push committed changes after creating merge re‐
66 quest. Make sure you have committed changes
67
68
69 --recover[=false] Save the options to a file if the merge request
70 fails to be created. If the file exists, the options will be loaded
71 from the recovery file (EXPERIMENTAL)
72
73
74 -i, --related-issue="" Create merge request for an issue. The
75 merge request title will be created from the issue if --title is not
76 provided.
77
78
79 --remove-source-branch[=false] Remove Source Branch on merge
80
81
82 --reviewer=[] Request review from users by their usernames
83
84
85 -s, --source-branch="" The Branch you are creating the merge re‐
86 quest. Default is the current branch.
87
88
89 --squash-before-merge[=false] Squash commits into a single commit
90 when merging
91
92
93 -b, --target-branch="" The target or base branch into which you
94 want your code merged
95
96
97 -t, --title="" Supply a title for merge request
98
99
100 -w, --web[=false] continue merge request creation on web browser
101
102
103 --wip[=false] Mark merge request as a work in progress. Alterna‐
104 tive to --draft
105
106
107 -y, --yes[=false] Skip submission confirmation prompt, with --fill
108 it skips all optional prompts
109
110
111
113 --help[=false] Show help for command
114
115
116 -R, --repo="" Select another repository using the OWNER/REPO or
117 GROUP/NAMESPACE/REPO format or full URL or git URL
118
119
120
122 glab mr new
123 glab mr create -a username -t "fix annoying bug"
124 glab mr create -f --draft --label RFC
125 glab mr create --fill --web
126 glab mr create --fill --fill-commit-body --yes
127
128
129
130
131
133 glab-mr(1)
134
135
136
137Auto generated by spf13/cobra Nov 2023 glab(1)