forked from eclipse-wakaama/wakaama
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eclipse-wakaamaGH-585] ci: Add initial gitlint usage
This is a fairly default configuration, which, among other stuff, checks for the subject line being 72 or less characters as required by the Eclipse project handbook. In addition, it checks for the Signed-off-by tag. This simplifies to detect missing signatures even before creating a PR when being executed locally. Please note: - gitlint 0.15.1 is required to detect the tags created by Git. - Using the gitlint-ignore tag in a commit message allows to suppress gitlint findings for a specific commit. Signed-off-by: Reto Schneider <code@reto-schneider.ch>
- Loading branch information
1 parent
9862691
commit 2cb9156
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Compliance | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
check-gitlint: | ||
name: Run gitlint | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code including full history | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install gitlint | ||
run: | | ||
pip3 install gitlint | ||
- name: Check commits with checkpatch | ||
run: | | ||
tools/ci/run_ci.sh --branch-source origin/${{ github.head_ref }} --branch-target origin/${{ github.base_ref }} --run-gitlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[general] | ||
contrib=contrib-body-requires-signed-off-by,CC1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters