From a48d7d9ae590da828f5c6a2fabec976e6349a399 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 20:35:36 +0000 Subject: [PATCH] fix(ci): switch conventional commit PR title module --- .gitea/workflows/pr-title-semantic.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/pr-title-semantic.yml b/.gitea/workflows/pr-title-semantic.yml index 16fc7a3..d54d208 100644 --- a/.gitea/workflows/pr-title-semantic.yml +++ b/.gitea/workflows/pr-title-semantic.yml @@ -15,13 +15,20 @@ jobs: name: Validate PR Title runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} + - name: PR Conventional Commit Validation + uses: ytanikin/pr-conventional-commits@1.4.0 with: - requireScope: true - wip: true - validateSingleCommit: true - validateSingleCommitMatchesPrTitle: true - githubBaseUrl: https://git.tainton.uk/api/v1 - ignoreLabels: ignore-semantic-pull-request + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + add_label: 'false' + + # DOES NOT WORK WITH GITEA + # - 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