mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-09-02 21:59:22 +00:00
## Summary - require the Dependabot rollup skill to commit and push validated changes - always create a pull request with the `dependencies` label - report the created PR and label confirmation ## Testing - `git diff --check` Refs: pi-session 019ff0f1-1aee-7691-8a2c-7c708812f7b0
2.6 KiB
2.6 KiB
name, description, license, compatibility
| name | description | license | compatibility |
|---|---|---|---|
| dependabot-pr-rollup | Find open Dependabot PRs for the current GitHub repo, compare each PR head to its base branch, replay only the net dependency changes in a fresh worktree and branch, run npm validation, then commit, push, and open a pull request labeled dependencies. Use when you want to batch or manually replicate active Dependabot updates. | MIT | Requires git, git worktree, gh CLI auth, npm, and a GitHub repo with an origin remote. |
Dependabot PR Rollup
When to use
Use this skill when the user wants to:
- find all open Dependabot PRs in the current repo
- reproduce their net effect in one local branch
- validate the result with the repo's standard npm checks
- commit and push the validated changes, then open a PR labeled
dependencies
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. - Run
npm ci --ignore-scriptsbefore applying updates. - Use
npm install ... --ignore-scriptsfor direct dependency changes sopackage-lock.jsonstays in sync. - When updating
@biomejs/biome, also update the Biome schema URL version inbiome.jsonto match the installed Biome version.
- Inspect
- Run
npm run all. - Commit the changed source, lockfile, and generated artifacts, then push the branch.
- Always open a pull request for the rollup and add the
dependencieslabel to it. Pass--label dependenciestogh pr create, or add the label immediately afterward withgh pr edit --add-label dependencies.
Repo-specific notes
- Use
ghfor GitHub operations. - Keep the user's original checkout untouched by working in a separate worktree.
- In this repo,
npm run allis the safest validation command because it runs build, check, package, and test. - If dependency changes affect bundled output, include the regenerated
dist/files.
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- commit SHA and PR URL
- confirmation that the PR has the
dependencieslabel