Compare commits
1 Commits
cbef2a13ee
...
211da47d59
Author | SHA1 | Date | |
---|---|---|---|
211da47d59 |
@ -15,6 +15,9 @@ 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"
|
||||||
echo "$title" | grep -qE '^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$' \
|
if [[ ! "$title" =~ '^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$' ]]; then
|
||||||
&& echo 'Pass' \
|
echo 'The title is not meet the format `BLOG-XXX Title title title`'
|
||||||
|| (echo 'The title is not meet the format `BLOG-XXX Title title title`'; exit 1)
|
exit 1
|
||||||
|
else
|
||||||
|
echo 'Pass'
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user