mirror of https://github.com/vuejs/vue.git
workflow: add "polish" to commit types
This commit is contained in:
parent
e9ea565d91
commit
e98d12d232
|
@ -7,7 +7,7 @@
|
||||||
Messages must be matched by the following regex:
|
Messages must be matched by the following regex:
|
||||||
|
|
||||||
``` js
|
``` js
|
||||||
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
|
|
|
@ -2,7 +2,7 @@ const chalk = require('chalk')
|
||||||
const msgPath = process.env.GIT_PARAMS
|
const msgPath = process.env.GIT_PARAMS
|
||||||
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
|
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
|
||||||
|
|
||||||
const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
||||||
|
|
||||||
if (!commitRE.test(msg)) {
|
if (!commitRE.test(msg)) {
|
||||||
console.log()
|
console.log()
|
||||||
|
|
Loading…
Reference in New Issue