LoginSignup
0

posted at

updated at

任意のコミット間で変更を加えたGithubのユーザー一覧を取得する

ghコマンドだけ必要。こんな感じでできる。

$ gh api -H 'Accept: application/vnd.github.v3+json' /repos/IzumiSy/hoge-app/compare/commit1...commit2 | jq -r '.commits[].author.login | select(. != null)' | sort | uniq

jqでnullチェックをしないとnullさんのアカウントが取れてしまうので注意。

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
What you can do with signing up
0