Skip to content

Commit 3fda6f2

Browse files
committed
ci: setup gitlint to enforce DCO
Signed-off-by: Ruby Iris Juric <[email protected]>
1 parent 4521b3f commit 3fda6f2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/gitlint.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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: Run GitLint
17+
run: pipx run -- gitlint --commits "${{ github.event.pull_request.base.sha }}..HEAD"

.gitlint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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:\/\/

0 commit comments

Comments
 (0)