Created
December 15, 2021 10:45
-
-
Save spmason/af8f588158da32d83ea1d1b28a34f3cc to your computer and use it in GitHub Desktop.
Create an octopus-merge of all pending dependabot PRs that are passing CI
This file contains 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
#!/usr/bin/env bash | |
git co -b dependabot-$(date '+%Y-%m-%d') && \ | |
gh pr list --label dependencies --json number,headRefName --search 'status:success' --jq '.[].headRefName | "origin/\(.)"' \ | |
| xargs git merge && \ | |
pr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment