File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint Git Commits
2
+
3
+ on :
4
+ pull_request : {}
5
+
6
+ jobs :
7
+ lint :
8
+ runs-on : ubuntu-24.04
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
12
+ with :
13
+ ref : ${{ github.event.pull_request.head.sha }}
14
+ fetch-depth : 0
15
+
16
+ - name : Install GitLint
17
+ run : pip install gitlint
18
+
19
+ - name : Run GitLint
20
+ run : gitlint --commits "${{ github.event.pull_request.base.sha }}..HEAD"
Original file line number Diff line number Diff line change
1
+ [general]
2
+ contrib=contrib-body-requires-signed-off-by,contrib-disallow-cleanup-commits
3
+ ignore-merge-commits=false
4
+ ignore-fixup-commits=false
5
+ ignore-fixup-amend-commits=false
6
+ ignore-squash-commits=false
7
+ regex-style-search=true
8
+
9
+ [ignore-body-lines]
10
+ regex=^\[\d\]: https:\/\/
You can’t perform that action at this time.
0 commit comments