Skip to content

Instantly share code, notes, and snippets.

@adamralph
Created July 21, 2024 09:06
Show Gist options
  • Save adamralph/b41c6b0bddf0b5c1e0ddb418493c2ee4 to your computer and use it in GitHub Desktop.
Save adamralph/b41c6b0bddf0b5c1e0ddb418493c2ee4 to your computer and use it in GitHub Desktop.
Rebase all dependabot PRs
gh search prs \
--repo myorg/myrepo \
--state open \
--label dependencies \
--limit 200 \
--json "url" --jq ".[] | .url" \
| xargs -n 1 -I{} \
gh pr comment -b "@dependabot rebase" {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment