Skip to content

Commit eea7035

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
workflows: check commit message with gitlint
Based-On: 07e30e2 Credit-To: Shachar Sharon <[email protected]> Signed-off-by: John Mulligan <[email protected]>
1 parent 97ec61b commit eea7035

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ jobs:
2929
run: go install github.com/mgechev/revive@latest
3030
- name: Run checks
3131
run: make check
32+
check-commits:
33+
runs-on: ubuntu-latest
34+
if: github.event_name == 'pull_request'
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
ref: ${{ github.event.pull_request.head.sha }}
40+
- name: Ensure branches
41+
run: git fetch
42+
- name: Lint git commit messages
43+
run: make check-gitlint
3244
test:
3345
runs-on: ubuntu-latest
3446
steps:

0 commit comments

Comments
 (0)