Skip to content

Commit

Permalink
workflows: check commit message with gitlint
Browse files Browse the repository at this point in the history
Based-On: 07e30e2
Credit-To: Shachar Sharon <[email protected]>
Signed-off-by: John Mulligan <[email protected]>
  • Loading branch information
phlogistonjohn authored and mergify[bot] committed Apr 17, 2023
1 parent 97ec61b commit eea7035
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
run: go install github.com/mgechev/revive@latest
- name: Run checks
run: make check
check-commits:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Ensure branches
run: git fetch
- name: Lint git commit messages
run: make check-gitlint
test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit eea7035

Please sign in to comment.