From e98d12d232af49b8e127375b6237013e01b77dda Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 8 Mar 2018 10:32:42 -0500 Subject: [PATCH] workflow: add "polish" to commit types --- .github/COMMIT_CONVENTION.md | 2 +- scripts/verify-commit-msg.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()