utils / command
Clean up the Dependabot queue
Empties the Dependabot PR queue through develop: rebases, merges green CI, asks before majors, closes PRs already covered
❯ /utils:cleanup-dependabot [--dry-run] [--only N,N,...]❯ $utils:cleanup-dependabot [--dry-run] [--only N,N,...]Empties the Dependabot PR queue without breaking the project's flow: everything reaches main
through develop, nobody merges red CI, and a major only goes in with someone watching.
Reads the real queue (never from memory), resolves conflicts PR by PR, merges what it can and returns a report of what went in, what was closed and what was left, with the reason for each.
Parameters
With no flag it works through the whole Dependabot queue. Any other argument is refused.
| Parameter | What it does |
|---|---|
--dry-run |
Inventory and plan only: no comment, merge or close. The working tree does not need to be clean. |
--only N,N,... |
Only these PR numbers, in the usual order. The other PRs are not touched. |
/utils:cleanup-dependabot # the whole queue
/utils:cleanup-dependabot --dry-run # plan only, touch nothing
/utils:cleanup-dependabot --only 215,180 # only these PRs
/utils:cleanup-dependabot --dry-run --only 215,180 # plan for these PRs only