Skip to content

Instantly share code, notes, and snippets.

@spmason
Created Dec 15, 2021
Embed
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 && \
pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment