diff --git a/.github/COMMIT_CONVENTION.md b/.github/COMMIT_CONVENTION.md index 6d2813fb6..b0d505196 100644 --- a/.github/COMMIT_CONVENTION.md +++ b/.github/COMMIT_CONVENTION.md @@ -7,7 +7,7 @@ Messages must be matched by the following regex: ``` 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 diff --git a/scripts/verify-commit-msg.js b/scripts/verify-commit-msg.js index 34c2862cb..6a2749de9 100644 --- a/scripts/verify-commit-msg.js +++ b/scripts/verify-commit-msg.js @@ -2,7 +2,7 @@ const chalk = require('chalk') const msgPath = process.env.GIT_PARAMS 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)) { console.log()