Kaynağa Gözat

workflow: add "polish" to commit types

Evan You 8 yıl önce
ebeveyn
işleme
e98d12d232
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      .github/COMMIT_CONVENTION.md
  2. 1 1
      scripts/verify-commit-msg.js

+ 1 - 1
.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

+ 1 - 1
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()