Compare commits
1 Commits
211da47d59
...
cbef2a13ee
Author | SHA1 | Date | |
---|---|---|---|
cbef2a13ee |
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user