-
-
Save aalemayhu/5051a927017a3ab2bd4b4674381ed738 to your computer and use it in GitHub Desktop.
gh cli commands to work with Dependabot PRs
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
# Github CLI commands to work with dependabot PRs | |
# List dependabot PRs that need review | |
gh pr list -l dependencies --search "status:success review:none" | |
gh pr list -A app/dependabot --search "status:success review:none" | |
# Instruct dependabot to merge all reviewed PRs, oldest first | |
gh pr list \ | |
-A app/dependabot \ | |
--search "status:success review:approved" \ | |
--json number --jq "reverse | .[].number" | xargs -t -I _ gh pr comment _ -b "@dependabot merge" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment