Dependabot PR Rollup
When to use
Use this skill when the user wants to:
- find all open Dependabot PRs in this repo
- reproduce their net effect in one local branch
- validate the result with the repo's standard checks
- optionally commit, push, and open a PR
Workflow
- Inspect the current checkout state, but do not reuse a dirty worktree.
- List open Dependabot PRs with
gh pr list --state open --author app/dependabot. - For each PR, collect the title, base branch, head branch, changed files, and relevant diffs.
- Compare each PR head against
origin/<base>instead of trusting the PR title. Dependabot PRs can already be partially merged, superseded by newer versions, or have no remaining net effect. - Create a new worktree and branch from
origin/<base>. - Reproduce only the remaining dependency changes in the new worktree.
- Inspect
package.jsonbefore editing npm dependencies. - Run
npm ci --ignore-scriptsbefore applying npm updates so dependency commands run from a clean install. - Use
npm install ... --ignore-scriptsfor direct npm dependency changes sopackage-lock.jsonstays in sync. - Preserve whether an npm package is a
dependencyordevDependency. - When updating
@biomejs/biome, also update the Biome schema URL version inbiome.jsonto match the installed Biome version. - For GitHub Actions updates, apply the net workflow-file changes from the Dependabot PR heads after confirming they still apply cleanly to the selected base.
- Inspect
- Run
npm run all. - If requested, commit the changed source, lockfile, workflow files, and generated artifacts, then push and open a PR.
Repo-specific notes
- Use
ghfor GitHub operations. - Keep the user's original checkout untouched by working in a separate worktree.
- This repo has Dependabot configured for both
npmandgithub-actions. - In this repo,
npm run allis the safest validation command because it runs build, check, package, and unit tests. npm run checkmay rewrite files with Biome; include those intentional formatting changes.- If dependency changes affect bundled output, include the regenerated
dist/files fromnpm run package.
Report back
Always report:
- open Dependabot PRs found
- which PRs required no net changes
- new branch name
- new worktree path
- files changed
npm run allresult- if applicable, commit SHA and PR URL