File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
Messages must be matched by the following regex:
8
8
9
9
``` js
10
- / ^ (revert: )? (feat| fix| docs| style| refactor| perf| test| workflow| ci| chore| types)(\( . + \) )? : . {1,50} /
10
+ / ^ (revert: )? (feat| fix| polish | docs| style| refactor| perf| test| workflow| ci| chore| types)(\( . + \) )? : . {1,50} /
11
11
```
12
12
13
13
#### Examples
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const chalk = require('chalk')
2
2
const msgPath = process . env . GIT_PARAMS
3
3
const msg = require ( 'fs' ) . readFileSync ( msgPath , 'utf-8' ) . trim ( )
4
4
5
- const commitRE = / ^ ( r e v e r t : ) ? ( f e a t | f i x | d o c s | s t y l e | r e f a c t o r | p e r f | t e s t | w o r k f l o w | c i | c h o r e | t y p e s ) ( \( .+ \) ) ? : .{ 1 , 50 } /
5
+ const commitRE = / ^ ( r e v e r t : ) ? ( f e a t | f i x | p o l i s h | d o c s | s t y l e | r e f a c t o r | p e r f | t e s t | w o r k f l o w | c i | c h o r e | t y p e s ) ( \( .+ \) ) ? : .{ 1 , 50 } /
6
6
7
7
if ( ! commitRE . test ( msg ) ) {
8
8
console . log ( )
You can’t perform that action at this time.
0 commit comments