Skip to content

Commit

Permalink
workflow: allow ! for indicating breaking changes in commit mesasge…
Browse files Browse the repository at this point in the history
… header

This was introduced in conventional-commits 1.0.0-beta.4
conventional-commits/conventionalcommits.org#134
  • Loading branch information
haoqunjiang committed Apr 17, 2019
1 parent f6c9437 commit f09722c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verifyCommitMsg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chalk = require('chalk') // eslint-disable-line
const msgPath = process.env.GIT_PARAMS
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()

const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((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})/

if (!commitRE.test(msg)) {
console.log()
Expand Down

0 comments on commit f09722c

Please sign in to comment.