Compare commits

...

1 Commits

Author SHA1 Message Date
2c6f38d159
ci: add commitlint action
Some checks failed
Lint PR / commitlint (pull_request) Failing after 20s
To check that commits are according to the Conventional Commits spec.
https://www.conventionalcommits.org/en/v1.0.0/
2025-06-21 19:43:53 +01:00
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default {
extends: ["@commitlint/config-conventional"],
};

20
.github/workflows/lint-pr.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Lint PR
on:
pull_request:
branches: ["main"]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: >-
npx commitlint
-g .github/workflows/commitlint.config.js
--from ${{ gitea.event.pull_request.base.sha }}
--to ${{ gitea.event.pull_request.head.sha }}
--verbose