DependabotのPRを一括でrebaseする
Dependabot の 作った Pull-Request を一括で rebase するには以下のようなコマンドを実行すると良い。 code:sh
gh search prs --repo <OWNER>/<REPO> \
--state open \
--label dependencies \
--limit 200 \
--json "url" --jq ".[] | .url" | xargs -n 1 -I{} \
sh -c 'gh pr comment -b "@dependabot rebase" {}'
code:sh
gh search prs --repo <OWNER>/<REPO> \
--state open \
--label dependencies \
--label javascript \
--limit 200 \
--json "url" --jq ".[] | .url" | xargs -n 1 -I{} \
sh -c 'gh pr comment -b "@dependabot rebase" {}'
関連