Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commit-message-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ async function run() {
try {
// Get inputs from workflow
const token = core.getInput('github-token', { required: true });
const pattern = core.getInput('pattern') || '^((Merge[ a-z-]* branch.*)|(Revert*)|((build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?!?: .*))$';
const pattern = core.getInput('pattern') || '^(Merge branch \'[^\']+\' into [^\s]+|Revert ".*"|Create PR for #\d+|(?:(feat|fix|chore|docs|style|refactor|perf|test|build|ci|revert)(\([a-z0-9\-]+\))?: .*))$';
Comment thread
srajasimman marked this conversation as resolved.
Outdated
const regexPattern = new RegExp(pattern);

// Create octokit client
Expand Down
Loading