diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5985296..d2b62c7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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