Skip to content

sophilabs/gilp-check-branch-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gilp Check Branch Name

travis coverage npm downloads js-semistandard-style license dependencies dev-dependencies

Gilp plugin to validate branch name.

Installation

npm install gilp-check-branch-name

Usage

var gulp = require('gulp');
var gilpCheckBranchName = require('gilp-check-branch-name');
var gilp = require('gilp')(gulp);

gilp.hook('pre-commit', function () {
  return gilp.srcFromStaged(['**/*'])
    .pipe(gilpCheckBranchName({
      allow: [/^(dev-([0-9]+|NA)-[a-z0-9_]+)$/, 'hotfix'],
      disallow: [/^(sta-([0-9]+)$/, 'master', /^(hotfix-([0-9]+)$/]
      }))
  });

License

Gilp Check Branch Message is Copyright (c) 2016 sophilabs, inc. It is free software, and may be redistributed under the terms specified in the license file.

About

sophilabs

Gilp Check Branch Message is maintained and funded by sophilabs, inc. The names and logos for sophilabs are trademarks of sophilabs, inc.

Releases

No releases published

Packages

No packages published