1.0.10 • Published 1 year ago

@springtree/check-git-branch-name v1.0.10

Weekly downloads
84
License
ISC
Repository
github
Last release
1 year ago

Check git branch name

npm version

We use git flow AVH within our company as a git branching strategy. This package provided a module to validate the current git branch against that naming policy. Recommended use is to perform the check in a Husky pre-push hook.

You can install this module in your project:

npm i -D @springtree/check-git-branch-name

or run it once with npx:

npx @springtree/check-git-branch-name

Even releases check

Most of mobile app project use an odd/even version approach. Development builds are odd minor versions and master/releases are even. By providing the --evenReleases or -e switch this can also be checked.

Custom checks

If you just want to check if a branch name you are considering is valid use the --test or -t switch:

npx @springtree/check-git-branch-name -t master

SpringTree coding guidelines tool

Our Coding guidelines repository has a command-line tool we use to install our linting setup. It can also be used to install and setup the git branch check:

npx @springtree/coding-guidelines --gitflow

It will install with the even releases check enabled by default.

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago