Skip to content

Instantly share code, notes, and snippets.

@radoslav-stefanov
Forked from robcowie/gh_dependabot.sh
Last active June 3, 2025 14:18
Show Gist options
  • Select an option

  • Save radoslav-stefanov/53b7d0ae771e42e53223a5af1c44fdc8 to your computer and use it in GitHub Desktop.

Select an option

Save radoslav-stefanov/53b7d0ae771e42e53223a5af1c44fdc8 to your computer and use it in GitHub Desktop.
gh cli commands to work with Dependabot PRs
# 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" \
--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