Skip to content

Commit aa7d19f

Browse files
committed
CCM-15317: Adding New PR Enforcement Action
1 parent 1001d9a commit aa7d19f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/actions/check-pr-title-format/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Validate PR title
22
description: Validate pull request title against a regex
33
inputs:
44
title:
5-
descriptions: Pull request title
5+
description: Pull request title
66
required: true
7-
required: false
87
pattern:
98
description: Regex pattern the PR title must match
109
required: true
@@ -27,7 +26,7 @@ runs:
2726
2827
if [[ "$title" =~ $pattern ]]; then
2928
echo "PR title is valid"
30-
else if
29+
else
3130
echo "::error::$message"
3231
exit 1
3332
fi

0 commit comments

Comments
 (0)