gh pr review
gh pr review [<number> | <url> | <branch>] [flags]
向拉取请求添加评审。
没有参数,将评审当前分支所属的拉取请求。
选项
-a,--approve- 批准拉取请求
-b,--body <string>- 指定评审的正文
-F,--body-file <file>- 从文件读取正文文本(使用 "-" 从标准输入读取)
-c,--comment- 评论拉取请求
-r,--request-changes- 请求更改拉取请求
从父命令继承的选项
-R,--repo <[HOST/]OWNER/REPO>- 使用 [HOST/]OWNER/REPO 格式选择另一个存储库
示例
# approve the pull request of the current branch
$ gh pr review --approve
# leave a review comment for the current branch
$ gh pr review --comment -b "interesting"
# add a review for a specific pull request
$ gh pr review 123
# request changes on a specific pull request
$ gh pr review 123 -r -b "needs more ASCII art"