Skip to content

Instantly share code, notes, and snippets.

@Kehet
Last active December 29, 2023 14:24
Show Gist options
  • Select an option

  • Save Kehet/8490beacd88322cd4e5231363213e962 to your computer and use it in GitHub Desktop.

Select an option

Save Kehet/8490beacd88322cd4e5231363213e962 to your computer and use it in GitHub Desktop.
Rebase all dependabot pullrequests
#!/bin/bash
gh pr list --author "app/dependabot" --json number \
| jq '.[].number' -r \
| while IFS=$'\t' read -r id; do gh pr comment $id --body "@dependabot rebase" ; done
# this would ask dependabot to merge all PRs
# | while IFS=$'\t' read -r id; do gh pr comment $id --body "@dependabot merge" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment