ci: update PR title checker (#3713)
This commit is contained in:
@@ -15,8 +15,8 @@ jobs:
|
||||
env:
|
||||
TITLE: ${{ github.event.pull_request.title }}
|
||||
run: |
|
||||
if ! echo "$TITLE" | grep -qP '^(feat|fix|test|chore|ci):'; then
|
||||
echo "::error::PR title must start with feat:, fix:, test:, chore:, or ci:"
|
||||
if ! echo "$TITLE" | grep -qP '^(chore|ci|docs|feat|fix|refactor|test):'; then
|
||||
echo "::error::PR title must start with chore:, ci:, docs:, feat:, fix:, refactor: or test:"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user