ci: Add gitlint

This commit is contained in:
Lars Toenning
2024-12-03 19:50:49 +01:00
parent 3f9d11687b
commit 59021f9a0a
2 changed files with 17 additions and 0 deletions

View File

@@ -59,6 +59,13 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install gitlint
run: |
pip install gitlint==0.19.1
- name: Run gitlint
run: gitlint --commits d789f61044e63e1a00d8e9f1d4d49c8d9ffc42a9..HEAD
- name: Install REUSE - name: Install REUSE
run: | run: |
pip install reuse==4.0.3 pip install reuse==4.0.3

10
.gitlint Normal file
View File

@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
# SPDX-License-Identifier: CC0-1.0
[general]
ignore=B6,B7
contrib=contrib-title-conventional-commits
### Configuring rules ###
[title-max-length]
line-length=100