]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: add (dx) commit category
authorEvan You <yyx990803@gmail.com>
Thu, 28 Feb 2019 17:50:01 +0000 (12:50 -0500)
committerEvan You <yyx990803@gmail.com>
Thu, 28 Feb 2019 17:50:01 +0000 (12:50 -0500)
scripts/verifyCommit.js

index 97d5386d89363d5a2cee97b0145f51264b981ea2..5429d6c5a617a1e4e2ef31fcfd587404d2b149a2 100644 (file)
@@ -6,7 +6,7 @@ const msg = require('fs')
   .readFileSync(msgPath, 'utf-8')
   .trim()
 
-const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,50}/
+const commitRE = /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,50}/
 
 if (!commitRE.test(msg)) {
   console.log()