From 59021f9a0a11d7c6585bcf81158f72a2c675d313 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Tue, 3 Dec 2024 19:50:49 +0100 Subject: [PATCH] ci: Add gitlint --- .github/workflows/build.yml | 7 +++++++ .gitlint | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .gitlint diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ad272925..45bd9e592 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,6 +59,13 @@ jobs: steps: - name: Checkout repository 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 run: | pip install reuse==4.0.3 diff --git a/.gitlint b/.gitlint new file mode 100644 index 000000000..8d3ce0faa --- /dev/null +++ b/.gitlint @@ -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