Compare commits

..

1 Commits

Author SHA1 Message Date
cbef2a13ee NO-ISSUE fix: if expression
All checks were successful
Frontend CI / build (push) Successful in 1m21s
PR Title Check / pr-title-check (pull_request) Successful in 13s
2025-01-20 23:56:50 +08:00

View File

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