Skip to content

Batch updates the current year in all license and readme files for your public GitHub repos.

License

Notifications You must be signed in to change notification settings

transitive-bullshit/github-batch-bump-year

Repository files navigation

GitHub Batch Bump Year

Batch updates the current year in all license and readme files for your public GitHub repos.

Build Status MIT License Prettier Code Formatting

Intro

This repo contains a script for batch-updating the current year in license and readme files across all of your public GitHub repos.

Usage

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

How it works

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.

License

MIT © Travis Fischer

Support my open source work by following me on twitter twitter

About

Batch updates the current year in all license and readme files for your public GitHub repos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published