Batch updates the current year in all license and readme files for your public GitHub repos.
This repo contains a script for batch-updating the current year in license and readme files across all of your public GitHub repos.
Requires Node.js 16 or later.
You'll need a GITHUB_ACCESS_TOKEN
environment variable.
git clone git@github.com:transitive-bullshit/github-batch-bump-year.git
cd github-batch-bump-year
pnpm install # (or npm install or yarn install)
npx tsx src/bin.ts
The script fetches all of your public, non-forked repos and then performs a shallow clone to a temp directory for each one. License and readme file dates are processed with a simple regex, and if any changes are found, then a chore
commit is made and pushed for that repo (example commit).
The script is idempotent, so you can run it as many times as you want, and if it doesn't find any files that should be updated, then no commits will be made.
MIT © Travis Fischer
Support my open source work by following me on twitter