gh issue edit

编辑问题

gh issue edit {<number> | <url>} [flags]

Options

--add-assignee <login>
通过 login,添加 关联的用户。使用 "@me" 关联自己.
--add-label <name>
通过 name,添加标签
--add-project <name>
通过 name,添加 issue 到 name 项目
-b, --body <string>
设置新的主体内容.
-F, --body-file <file>
文件读取主体内容 (用"-" 的话,就从标准输入读取)
-m, --milestone <name>
用 name,编辑下里程碑
--remove-assignee <login>
移除 login 的人员配置. 使用 "@me" 就移除自己
--remove-label <name>
移除 name 标签
--remove-project <name>
移除 name 项目
-t, --title <string>
设置新的标题.

Options inherited from parent commands

-R, --repo <[HOST/]OWNER/REPO>
使用 [HOST/]OWNER/REPO 格式,选择另一存储库

Examples

$ gh issue edit 23 --title "I found a bug" --body "Nothing works"
$ gh issue edit 23 --add-label "bug,help wanted" --remove-label "core"
$ gh issue edit 23 --add-assignee "@me" --remove-assignee monalisa,hubot
$ gh issue edit 23 --add-project "Roadmap" --remove-project v1,v2
$ gh issue edit 23 --milestone "Version 1"
$ gh issue edit 23 --body-file body.txt

See also