Skip to content

Commit f09722c

Browse files
committed
workflow: allow ! for indicating breaking changes in commit mesasge header
This was introduced in conventional-commits 1.0.0-beta.4 conventional-commits/conventionalcommits.org#134
1 parent f6c9437 commit f09722c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/verifyCommitMsg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const chalk = require('chalk') // eslint-disable-line
22
const msgPath = process.env.GIT_PARAMS
33
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
44

5-
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50})/
5+
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?!?: .{1,50})/
66

77
if (!commitRE.test(msg)) {
88
console.log()

0 commit comments

Comments
 (0)