Skip to content

Commit c6fdb38

Browse files
chmouelzakisk
authored andcommitted
fix: skip pr title check for MIRRORED PR
- Updated linter to bypass conventional commit check if PR title contains 'MIRRORED' - Prevents false positives for mirrored pull requests that do not follow commit conventions
1 parent 7cc3837 commit c6fdb38

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" ]] && ! 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 -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)