grumphp icon indicating copy to clipboard operation
grumphp copied to clipboard

Validate Git branch naming convention

Open ademarco opened this issue 9 years ago • 5 comments

Q A
Version 0.11.3
Bug? no
New feature? yes
Question? yes
Documentation? no
Related tickets

In my organisation we need to enforce specific Git branch naming conventions so I was wondering if this is something GrumPHP could take care of.

I've been sneaking around the code and it looks like we could leverage the \Gitonomy\Git\Reference\Branch class to gather information about the current branch and validate it using regular expressions, like the commit message task currently does.

Would this be something interesting for GrumPHP? In case it would be we could dedicate some time to it.

ademarco avatar Mar 09 '17 10:03 ademarco

👍

drupol avatar Mar 09 '17 10:03 drupol

👍

netlooker avatar Mar 09 '17 10:03 netlooker

👍 That would be a nice addition. Feel free to implement.

veewee avatar Mar 09 '17 12:03 veewee

Ok PR is ready for review!

ademarco avatar Mar 09 '17 16:03 ademarco

Implemented in #329.

veewee avatar Mar 16 '17 06:03 veewee