Skip to content

Commit 816e66f

Browse files
feat: support all characters after colon (#1255)
**Motivation:** There's a small bug present in the PR title check, it does not support all characters after the colon. **Modifications:** - Modified regex to support all characters. **Result:** *Should* now support all characters.
1 parent 3289986 commit 816e66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/automation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
echo "PR title: $PR_TITLE"
3232
3333
# Define the valid pattern (supports conventional commit format)
34-
if [[ ! "$PR_TITLE" =~ ^(release|feat|fix|chore|docs|refactor|test|style|ci|perf)(\([a-z0-9-]+\))?\:\ .* ]]; then
34+
if [[ ! "$PR_TITLE" =~ ^(release|feat|fix|chore|docs|refactor|test|style|ci|perf)(\(.*?\))?:\ .* ]]; then
3535
echo "❌ Invalid PR title: '$PR_TITLE'"
3636
echo "Expected format: 'type: description' or 'type(scope): description'"
3737
echo "Allowed types: release, feat, fix, chore, docs, refactor, test, style, ci, perf."

0 commit comments

Comments
 (0)