From 76196661acde21d4e9cf87aba0fc29a9cd0b5ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Murta?= Date: Sat, 21 Jun 2025 18:39:57 +0100 Subject: [PATCH] fixup! ci: add action-semantic-pull-request --- .github/workflows/lint-pr.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index bf96828..35aa22a 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -5,14 +5,17 @@ on: branches: ["main"] jobs: - lint: + commitlint: name: Validate PR title runs-on: ubuntu-latest - permissions: - pull-requests: write steps: - - run: echo "${{ toJson(github) }}" + - uses: actions/checkout@v4 - - uses: amannn/action-semantic-pull-request@v5 - env: - GITHUB_TOKEN: "" + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: npm + + - run: npm install -D @commitlint/cli @commitlint/config-conventional + + - run: npx commitlint --from ${{ gitea.event.pull_request.base.sha }} --to ${{ gitea.event.pull_request.head.sha }} --verbose