Last active
May 15, 2024 21:37
-
-
Save robcowie/41fc45afb57366f0afe613caf4527c08 to your computer and use it in GitHub Desktop.
gh cli commands to work with Dependabot PRs
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
# 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