Skip to content

A package that will plead for you to write changesets for your changes.

License

Notifications You must be signed in to change notification settings

avatarneil/pls-changeset-me

Repository files navigation

Pls Changeset Me 🥺

A script that will plead for you to write changesets for your changes.

Codeship Status for avatarneil/pls-changeset-me

Prerequisites

  • Repo with changesets
  • NodeJS v15.11+ (may work on earlier versions, but untested!)
  • A burning desire to have your toolchain stop you from making mistakes

Usage

It's as simple as: pnpx pls-changeset-me check

  • You can use it as a pre-commit/pre-push hook with husky!
    • Take a look at .husky/pre-commit for an example. Note the importance of including exec < /dev/tty, unless you want to run in headless mode (note: headless mode is not recommended for pre-commit/pre-push hooks)!
  • You can use it straight from your command line by invoking with pnpx!
  • You can use it to block CI/CD (Jenkins, Codeship, Travis, you name it)! Simply supply the -headless parameter :)

Commands

Check

Checks for any staged changes which do not yet have a corresponding changeset. By default, prompts the user if they'd like to generate a changeset.

Options
  • -headless -- Runs in a headless mode which will force-exit without user input if there have been any changes that may require a new changeset.

Contributing

Feel free to open issues for any desired features, and cut PRs for any desired changes! I'll do my best to keep this package reasonably maintained. If you'd like to be a maintainer, cut a couple PRs and I'll probably drop you a line :)

About

A package that will plead for you to write changesets for your changes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published