New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@springtree/check-git-branch-name

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springtree/check-git-branch-name

Validates the current git branch name matches company naming policy

  • 1.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 07 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc