gh project item-create
在项目中创建草稿问题项
gh project item-create [<number>] [flags]
选项
-
--body <string> - 草稿问题的正文
-
--format <string> - 输出格式: {json}
-q,--jq <expression>- 使用 jq 表达式过滤 JSON 输出
-
--owner <string> - 所有者的登录名。对于当前用户,请使用“@me”。
-t,--template <string>- 使用 Go 模板格式化 JSON 输出;请参阅“gh help formatting”
-
--title <string> - 草稿问题的标题
示例
# create a draft issue in the current user's project "1"
gh project item-create 1 --owner "@me" --title "new item" --body "new item body"