Skip to content

Commit 69d5622

Browse files
committed
ci: Add gitlint
1 parent 0752de8 commit 69d5622

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ jobs:
5959
steps:
6060
- name: Checkout repository
6161
uses: actions/checkout@v4
62+
with:
63+
fetch-depth: '0'
64+
- name: Install gitlint
65+
run: |
66+
pip install gitlint==0.19.1
67+
- name: Run gitlint
68+
run: gitlint --commits d789f61044e63e1a00d8e9f1d4d49c8d9ffc42a9..HEAD
6269
- name: Install REUSE
6370
run: |
6471
pip install reuse==4.0.3

.gitlint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
2+
# SPDX-License-Identifier: CC0-1.0
3+
4+
[general]
5+
ignore=B6,B7
6+
contrib=contrib-title-conventional-commits
7+
8+
### Configuring rules ###
9+
[title-max-length]
10+
line-length=100

0 commit comments

Comments
 (0)