We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d54db commit 45c3dcbCopy full SHA for 45c3dcb
scripts/verifyCommitMsg.js
@@ -1,8 +1,8 @@
1
-const chalk = require('chalk')
+const chalk = require('chalk') // eslint-disable-line
2
const msgPath = process.env.GIT_PARAMS
3
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
4
5
-const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
+const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50})/
6
7
if (!commitRE.test(msg)) {
8
console.log()
0 commit comments