gh pr view
gh pr view [<number> | <url> | <branch>] [flags]
显示标题、正文和 PR 的其他信息。
在没有参数的情况下,将显示属于当前分支的请求。
使用--web,改为在 web 浏览器中,打开拉取请求。
Options
-c,--comments- 查看 pull request 评论
-q,--jq <expression>- jq 表达式,过滤 JSON 输出
--json <fields>- JSON 输出特殊字段
-t,--template <string>- 模板化输出
-w,--web- 浏览器打开
Options inherited from parent commands
-R,--repo <[HOST/]OWNER/REPO>- 使用 [HOST/]OWNER/REPO 格式,选择另一存储库