From 96a836cc17fbb817308c93ca959a28afb3172e9c Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 20:25:07 +0000 Subject: [PATCH] feat(ci): enforce conventional commit PR titles --- .gitea/workflows/pr-title-semantic.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/pr-title-semantic.yml diff --git a/.gitea/workflows/pr-title-semantic.yml b/.gitea/workflows/pr-title-semantic.yml new file mode 100644 index 0000000..16fc7a3 --- /dev/null +++ b/.gitea/workflows/pr-title-semantic.yml @@ -0,0 +1,27 @@ +name: "Enforce Conventional Commit PR Title" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened + - labeled + - unlabeled + +jobs: + validate: + name: Validate PR Title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} + with: + requireScope: true + wip: true + validateSingleCommit: true + validateSingleCommitMatchesPrTitle: true + githubBaseUrl: https://git.tainton.uk/api/v1 + ignoreLabels: ignore-semantic-pull-request