Last active
December 29, 2023 14:24
-
-
Save Kehet/8490beacd88322cd4e5231363213e962 to your computer and use it in GitHub Desktop.
Rebase all dependabot pullrequests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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