Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2021 10:45
What would you like to do?
Create an octopus-merge of all pending dependabot PRs that are passing CI
#!/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 && \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment