From db2dfb466bf32dad7dc90f33e020d43ae6231700 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 21:47:11 +0200 Subject: [PATCH] ci: add 'check-pr-title' job to pipeline --- .gitea/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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