1GH-PR-EDIT(1) GitHub CLI manual GH-PR-EDIT(1)
2
3
4
6 gh-pr-edit - Edit a pull request
7
8
9
11 gh pr edit [<number> | <url> | <branch>] [flags]
12
13
14
16 Edit a pull request.
17
18
19 Without an argument, the pull request that belongs to the current
20 branch is selected.
21
22
23
25 --add-assignee <login>
26 Add assigned users by their login. Use "@me" to assign yourself.
27
28
29 --add-label <name>
30 Add labels by name
31
32
33 --add-project <name>
34 Add the pull request to projects by name
35
36
37 --add-reviewer <login>
38 Add reviewers by their login.
39
40
41 -B, --base <branch>
42 Change the base branch for this pull request
43
44
45 -b, --body <string>
46 Set the new body.
47
48
49 -F, --body-file <file>
50 Read body text from file (use "-" to read from standard input)
51
52
53 -m, --milestone <name>
54 Edit the milestone the pull request belongs to by name
55
56
57 --remove-assignee <login>
58 Remove assigned users by their login. Use "@me" to unassign
59 yourself.
60
61
62 --remove-label <name>
63 Remove labels by name
64
65
66 --remove-project <name>
67 Remove the pull request from projects by name
68
69
70 --remove-reviewer <login>
71 Remove reviewers by their login.
72
73
74 -t, --title <string>
75 Set the new title.
76
77
78
80 -R, --repo <[HOST/]OWNER/REPO>
81 Select another repository using the [HOST/]OWNER/REPO format
82
83
84
86 $ gh pr edit 23 --title "I found a bug" --body "Nothing works"
87 $ gh pr edit 23 --add-label "bug,help wanted" --remove-label "core"
88 $ gh pr edit 23 --add-reviewer monalisa,hubot --remove-reviewer myorg/team-name
89 $ gh pr edit 23 --add-assignee "@me" --remove-assignee monalisa,hubot
90 $ gh pr edit 23 --add-project "Roadmap" --remove-project v1,v2
91 $ gh pr edit 23 --milestone "Version 1"
92
93
94
95
96
98 gh-pr(1)
99
100
101
102 Jun 2022 GH-PR-EDIT(1)