Skip to content

Commit e98d12d

Browse files
committed
workflow: add "polish" to commit types
1 parent e9ea565 commit e98d12d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/COMMIT_CONVENTION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Messages must be matched by the following regex:
88

99
``` 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}/
1111
```
1212

1313
#### Examples

scripts/verify-commit-msg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const chalk = require('chalk')
22
const msgPath = process.env.GIT_PARAMS
33
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
44

5-
const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
5+
const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
66

77
if (!commitRE.test(msg)) {
88
console.log()

0 commit comments

Comments
 (0)