Compare commits

..

1 Commits

Author SHA1 Message Date
211da47d59 NO-ISSUE fix: if expression
Some checks failed
Frontend CI / build (push) Successful in 1m20s
PR Title Check / pr-title-check (pull_request) Failing after 13s
2025-01-20 23:46:11 +08:00

View File

@ -15,6 +15,9 @@ jobs:
run: |
title="${{ gitea.event.pull_request.title }}"
echo "Checking PR title: $title"
echo "$title" | grep -qE '^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$' \
&& echo 'Pass' \
|| (echo 'The title is not meet the format `BLOG-XXX Title title title`'; exit 1)
if [[ ! "$title" =~ '^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$' ]]; then
echo 'The title is not meet the format `BLOG-XXX Title title title`'
exit 1
else
echo 'Pass'
fi