Skip to content

Commit f99a838

Browse files
authored
feat: pattern updated to handle merge and revert commit messages
1 parent d5e8773 commit f99a838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit-message-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function run() {
55
try {
66
// Get inputs from workflow
77
const token = core.getInput('github-token', { required: true });
8-
const pattern = core.getInput('pattern') || '^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\\(\\w+\\))?: .+$';
8+
const pattern = core.getInput('pattern') || '^((Merge[ a-z-]* branch.*)|(Revert*)|((build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?!?: .*))$';
99
const regexPattern = new RegExp(pattern);
1010

1111
// Create octokit client

0 commit comments

Comments
 (0)