fixup! ci: add action-semantic-pull-request
Some checks failed
Lint PR / Validate PR title (pull_request) Failing after 47s
Go / build (1.22) (pull_request) Successful in 37s
Go / build (1.23) (pull_request) Failing after 20s
Go / build (1.24) (pull_request) Failing after 13s

This commit is contained in:
Luís Murta 2025-06-21 18:39:57 +01:00
parent d2f6d33006
commit 76196661ac
Signed by: satprog
GPG Key ID: 169EF1BBD7049F94

View File

@ -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