gh project item-add
将拉取请求或问题添加到项目
gh project item-add [<number>] [flags]
选项
-
--format <string> - 输出格式: {json}
-q,--jq <expression>- 使用 jq 表达式过滤 JSON 输出
-
--owner <string> - 所有者的登录名。对于当前用户,使用“@me”。
-t,--template <string>- 使用 Go 模板格式化 JSON 输出;请参阅“gh help formatting”
-
--url <string> - 要添加到项目的 issue 或 pull request 的 URL
示例
# add an item to monalisa's project "1"
gh project item-add 1 --owner monalisa --url https://github.com/monalisa/myproject/issues/23