We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 439ba1d commit 8385f1cCopy full SHA for 8385f1c
2 files changed
.github/workflows/linter.yml
@@ -0,0 +1,23 @@
1
+name: Commit Message
2
+
3
+on:
4
+ pull_request:
5
+ branches: [ master ]
6
7
+jobs:
8
+ gitlint:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ fetch-depth: '0'
14
15
+ - uses: actions/setup-python@v5
16
17
+ python-version: '3.x'
18
19
+ - name: Install gitlint
20
+ run: pip install gitlint
21
22
+ - name: Run gitlint
23
+ run: gitlint --commits ${{ github.event.pull_request.base.sha }}..${{ github.sha }}
.gitlint
@@ -0,0 +1,12 @@
+[general]
+ignore=body-is-missing,subject-case
+[title-max-length]
+line-length=200
+[title-match-regex]
+regex=^(Issue #\d+: .*|Pull #\d+: .*|(minor|config|infra|doc|spelling|dependency): .*)$
+[title-trailing-punctuation]
+[title-trailing-whitespace]
0 commit comments