Skip to content

Commit d88c80f

Browse files
author
github-actions
committed
chore: update build artifacts
1 parent 4343ca0 commit d88c80f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

dist/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31835,7 +31835,17 @@ async function run() {
3183531835
try {
3183631836
// Get inputs from workflow
3183731837
const token = core.getInput('github-token', { required: true });
31838-
const pattern = core.getInput('pattern') || '^((Merge[ a-z-]* branch.*)|(Revert*)|((build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?!?: .*))$';
31838+
31839+
const mergeBranchPattern = 'Merge branch [\'"][^\'"]+[\'"] into [^\\s]+';
31840+
const revertPattern = 'Revert ".*"';
31841+
const createPrPattern = core.getInput('create-pr-pattern') || 'Create PR for #\\d+';
31842+
const types = [
31843+
'feat', 'fix', 'chore', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'revert'
31844+
].join('|');
31845+
const conventionalPattern = `(?:(${types})(\\([a-z0-9\\-]+\\))?(!)?: .*)`;
31846+
31847+
const defaultPattern = `^(${mergeBranchPattern}|${revertPattern}${createPrPattern ? '|' + createPrPattern : ''}|${conventionalPattern})$`;
31848+
const pattern = core.getInput('pattern') || defaultPattern;
3183931849
const regexPattern = new RegExp(pattern);
3184031850

3184131851
// Create octokit client

0 commit comments

Comments
 (0)