gh issue create
创建 issue
gh issue create [flags]
Options
-a
,--assignee <login>
- 通过 login 分配人员。使用 "@me" 自我分配。
-b
,--body <string>
- 提供主体内容。不填,也会提示
-F
,--body-file <file>
- 文件读取主体内容 (用"-" 的话,就从标准输入读取)
-l
,--label <name>
- 通过 name,添加标签
-m
,--milestone <name>
- 通过 name,添加 issue 到 name 里程牌
-p
,--project <name>
- 通过 name,添加 issue 到 name 项目
--recover <string>
- 一次失败创建,带来的恢复输入
-t
,--title <string>
- 提供一个标题。不填,也会提示
-w
,--web
- 浏览器打开,创建 issue
Options inherited from parent commands
-R
,--repo <[HOST/]OWNER/REPO>
- 使用 [HOST/]OWNER/REPO 格式,选择另一存储库
Examples
$ gh issue create --title "I found a bug" --body "Nothing works"
$ gh issue create --label "bug,help wanted"
$ gh issue create --label bug --label "help wanted"
$ gh issue create --assignee monalisa,hubot
$ gh issue create --assignee "@me"
$ gh issue create --project "Roadmap"