ci: add commit linting

Lints Pull Request commits with commitlint:
https://github.com/wagoid/commitlint-github-action

Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Nick Hainke 2022-06-02 09:54:32 +02:00
parent e2d72c5775
commit 4576557bbc

12
.github/workflows/commitlint.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: Lint Commit Messages
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4