Skip to content

Commit 6c3299f

Browse files
committed
workflows: check commit with gitlint
Execute gitlint utility via make rule to check validity of git commit messages. Expects valid git-commits from 'origin/main' up to current commit. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 44ba319 commit 6c3299f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ jobs:
2828
run: make build-tools
2929
- name: Run checks
3030
run: make check
31+
check-commits:
32+
runs-on: ubuntu-latest
33+
if: github.event_name == 'pull_request'
34+
steps:
35+
- uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
ref: ${{ github.event.pull_request.head.sha }}
39+
- name: Ensure branches
40+
run: git fetch
41+
- name: Lint git commit messages
42+
run: make check-gitlint
3143
podmanbuild:
3244
runs-on: ubuntu-latest
3345
# don't run on push, since the "push" job contains the

0 commit comments

Comments
 (0)