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