0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ghコマンドでPRに上がっている差分ファイルを全部列挙する

Posted at

結論

こう

gh pr view --json files --jq '.files.[].path'

もしPRの番号を指定したいならこう(仮に #123 がPRの番号なら)

gh pr view 123 --json files --jq '.files.[].path'

これを使えると何が嬉しい?

やっぱり最近はAIとの協働のためにghコマンドを使う機会が増えました。上記も生成AIに今やってる仕事の概要を伝えるために使おうとした流れで必要になった形です。

参考元

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?