mcpField
U
update-version

update-version

github.com/remotion-devDevelopment68.6k769 installsUpdated today
Repository

About update-version

A repository skill for updating documentation’s `AvailableFrom` values in a pull request to the next patch version found on `main`. It is intended for contributors handling versioned docs changes.

Key features

  1. 01Read the canonical version from `main`
  2. 02Calculate the next patch version
  3. 03Find changed `AvailableFrom` entries
  4. 04Update only entries touched by the PR
  5. 05Commit and push the update

Use cases

  1. 01Updating availability versions in a docs PR
  2. 02Keeping unrelated version entries unchanged

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/remotion-dev/remotion --skill update-version

After installing, type/update-versionin Claude Code to confirm it loaded.

Details

From the project README

Use this when a PR contains docs changes with <AvailableFrom v="..."> and the value should reflect the next release version.

  1. Get the canonical version from main:
git fetch origin main --quiet
git --no-pager show origin/main:packages/core/src/version.ts

Read VERSION from that file (for example: 4.0.468), then compute the next patch version by incrementing the patch number by 1 (4.0.469).

  1. Find AvailableFrom entries changed in the current PR:
git --no-pager diff origin/main...HEAD -- packages/docs | rg 'AvailableFrom v="'
  1. Update only AvailableFrom values touched by this PR so they match the computed next patch version from step 1.

  2. Do not change unrelated AvailableFrom values outside the PR diff.

  3. Commit and push the update.

Comments

Markdown supported