ci: Add linter to make sure we use Conventional Commits
This will make it easier for us to write Changelogs for example. See https://www.conventionalcommits.org/en/v1.0.0. Also mentioned in the CONTRIBUTING.md Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
17
.github/workflows/commit-lint.yml
vendored
Normal file
17
.github/workflows/commit-lint.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: "Commits"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Applies to all commits
|
||||
fetch-depth: 0
|
||||
|
||||
- name: "Conventional Commits"
|
||||
uses: wagoid/commitlint-github-action@v6
|
||||
Reference in New Issue
Block a user