{"version":"1.0","author_name":"ohbarye","width":"100%","title":"CLI\u3067pull requests\u3092\u307e\u3068\u3081\u3066approve\u3059\u308b\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc","published":"2022-01-05 00:28:15","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohbarye.hatenablog.jp%2Fentry%2F2022%2F01%2F05%2Fapprove-pull-requests-all-at-once\" title=\"CLI\u3067pull requests\u3092\u307e\u3068\u3081\u3066approve\u3059\u308b\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc - valid,invalid\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://ohbarye.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/ohbarye/","blog_title":"valid,invalid","description":"GitHub\u516c\u5f0fCLI\u306egh\u3092\u4f7f\u3063\u3066\u8907\u6570\u306epull requests\u3092\u307e\u3068\u3081\u3066approve\u3059\u308b\u3002 \u307e\u308c\u306b\u4f7f\u3046\u306e\u3067\u30e1\u30e2\u3002 \u524d\u63d0 gh install\u6e08\u307f\u3001\u304b\u3064current directory\u304c\u5bfe\u8c61\u306erepository\u3067\u3042\u308b\u3053\u3068 \u30b3\u30de\u30f3\u30c9\u4f8b Approve all pull requests in the repositrory $ for pr in $(gh pr list --json 'number' -t '{{ range $i, $pr := . }}{{ $pr.number }} {{end}}'); do gh pr review -a $pr; done Approve\u2026","url":"https://ohbarye.hatenablog.jp/entry/2022/01/05/approve-pull-requests-all-at-once","image_url":null,"height":"190","provider_url":"https://hatena.blog","categories":["GitHub","gh"],"provider_name":"Hatena Blog","type":"rich"}