Skip to content

Commit 56d7022

Browse files
authored
fix: remove optional create PR pattern input for consistency in commit message validation (#3)
1 parent d88c80f commit 56d7022

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ inputs:
55
description: "GitHub token for API access"
66
required: true
77
default: ${{ github.token }}
8-
pattern:
9-
description: "Regex pattern for commit message validation"
10-
required: false
11-
default: '^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(\w+\))?: .+$'
128
runs:
139
using: "node20"
1410
main: "dist/index.js"
1511
branding:
1612
icon: "check-circle"
1713
color: "green"
18-

commit-message-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function run() {
88

99
const mergeBranchPattern = 'Merge branch [\'"][^\'"]+[\'"] into [^\\s]+';
1010
const revertPattern = 'Revert ".*"';
11-
const createPrPattern = core.getInput('create-pr-pattern') || 'Create PR for #\\d+';
11+
const createPrPattern = 'Create PR for #\\d+';
1212
const types = [
1313
'feat', 'fix', 'chore', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'revert'
1414
].join('|');

0 commit comments

Comments
 (0)