Compare commits
1 Commits
211da47d59
...
cbef2a13ee
Author | SHA1 | Date | |
---|---|---|---|
cbef2a13ee |
@ -15,9 +15,6 @@ jobs:
|
||||
run: |
|
||||
title="${{ gitea.event.pull_request.title }}"
|
||||
echo "Checking PR title: $title"
|
||||
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
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user