fix: update check-pr-title to allow "WIP: "
All checks were successful
CI / Check PR Title (pull_request) Successful in 15s
CI / Go Lint (pull_request) Successful in 32s
CI / Markdown Lint (pull_request) Successful in 17s
CI / Makefile Lint (pull_request) Successful in 31s
CI / Unit Tests (pull_request) Successful in 31s
CI / Fuzz Tests (pull_request) Successful in 1m2s
CI / Mutation Tests (pull_request) Successful in 1m6s
All checks were successful
CI / Check PR Title (pull_request) Successful in 15s
CI / Go Lint (pull_request) Successful in 32s
CI / Markdown Lint (pull_request) Successful in 17s
CI / Makefile Lint (pull_request) Successful in 31s
CI / Unit Tests (pull_request) Successful in 31s
CI / Fuzz Tests (pull_request) Successful in 1m2s
CI / Mutation Tests (pull_request) Successful in 1m6s
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
TITLE="${{ gitea.event.pull_request.title }}"
|
TITLE="${{ gitea.event.pull_request.title }}"
|
||||||
if ! echo "$TITLE" | grep -qE '^(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then
|
if ! echo "$TITLE" | grep -qE '^(WIP: )?(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then
|
||||||
echo "::error::Pull Request title must follow conventional commits"
|
echo "::error::Pull Request title must follow conventional commits"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user