其他

fix-dependabot

remotion-dev/remotion

Fix a Dependabot PR by updating all monorepo instances of the dependency, running bun install, and pushing

  • 1007 次安装
  • 6.9万 星标
  • 收录于

安装命令

npx skills add https://github.com/remotion-dev/remotion --skill fix-dependabot

SKILL.md

Dependabot PRs only update one package.json and never run bun install, so the bun.lock file is out of date and other packages in the monorepo still reference the old version. This skill fixes both problems.

Steps

  1. Get PR info — Use gh pr view <number> --json headRefName,files,title,body to identify the branch name, which dependency was bumped, and the old/new versions.

  2. Checkout the branch:

git fetch origin <branch>
git checkout <branch>
  1. Update all monorepo instances — Dependabot only touches one package. Search for all other package.json files that reference the same dependency at the old version and update them too:
rg '"<dependency>": "[~^]?<old-version>"' --glob '**/package.json'