Skip to content

Commit f4b1be2

Browse files
committed
chore: Allow insensitive case for pr title
we were checking the pull request title for conventional commit format but on pull request title it's fine to have uppercase (compared to commit) Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent d1ea889 commit f4b1be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.tekton/linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ spec:
137137
# Check pull request title for conventional commit format
138138
pull_request_title="{{ body.pull_request.title }}"
139139
pr_title_failed=false
140-
if [[ -n "$pull_request_title" ]] && [[ "$pull_request_title" != *MIRRORED* ]] && ! echo "$pull_request_title" | grep -E -q "${conv_regexp}"; then
140+
if [[ -n "$pull_request_title" ]] && [[ "$pull_request_title" != *MIRRORED* ]] && ! echo "$pull_request_title" | grep -i -E -q "${conv_regexp}"; then
141141
echo "ERROR: Pull request title does not follow conventional commit format:"
142142
echo " Title: $pull_request_title"
143143
pr_title_failed=true

0 commit comments

Comments
 (0)