gh pr edit
gh pr edit [<number> | <url> | <branch>] [flags]
编辑拉取请求。
在没有参数的情况下,将选择属于当前分支的请求。
Options
--add-assignee <login>
- 通过 login,添加 关联的用户。使用 "@me" 关联自己.
--add-label <name>
- 通过 name,添加标签
--add-project <name>
- 将 pull request 添加到 name 项目
--add-reviewer <login>
- 通过 login ,添加审查人员.
-B
,--base <branch>
- 更改 PR 的基分支
-b
,--body <string>
- 设置新的主体内容.
-F
,--body-file <file>
- 文件读取主体内容 (用"-" 的话,就从标准输入读取)
-m
,--milestone <name>
- 编辑 name 里程牌
--remove-assignee <login>
- 移除 login 的人员配置. 使用 "@me" 就移除自己
--remove-label <name>
- 移除 name 标签
--remove-project <name>
- 移除 name 项目的 PR
--remove-reviewer <login>
- 通过 login ,移除审查人员.
-t
,--title <string>
- 设置新的标题.
Options inherited from parent commands
-R
,--repo <[HOST/]OWNER/REPO>
- 使用 [HOST/]OWNER/REPO 格式,选择另一存储库
Examples
$ gh pr edit 23 --title "I found a bug" --body "Nothing works"
$ gh pr edit 23 --add-label "bug,help wanted" --remove-label "core"
$ gh pr edit 23 --add-reviewer monalisa,hubot --remove-reviewer myorg/team-name
$ gh pr edit 23 --add-assignee "@me" --remove-assignee monalisa,hubot
$ gh pr edit 23 --add-project "Roadmap" --remove-project v1,v2
$ gh pr edit 23 --milestone "Version 1"