ci: add 'check-pr-title' job to pipeline

This commit is contained in:
2026-03-29 21:47:11 +02:00
parent b1ab3a6326
commit db2dfb466b

View File

@@ -6,6 +6,17 @@ on:
pull_request:
jobs:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- run: |
TITLE="${{ gitea.event.pull_request.title }}"
if ! echo "$TITLE" | grep -qE '^(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then
echo "::error::Pull Request title must follow conventional commits"
exit 1
fi
lint-go:
name: Go Lint
runs-on: ubuntu-latest