🤧

githubでdefault branchを取得する

2022/08/07に公開

メモ

$ gh repo list mattak --json nameWithOwner,defaultBranchRef | jq -r '.[] | select(.nameWithOwner == "mattak/swikt") | .defaultBranchRef.name'
main

Discussion