Skip to content

Commit

Permalink
ci(github): add commit lint action to PRs
Browse files Browse the repository at this point in the history
This is supposed to check every single commit in a PR
for having the correct message format.

Previously the semantic PR action was only checking
the PR title or the first commit message, so you could
get in invalid commit messages by adding multiple
commits post-approval which the semantic PR action
would not check properly.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Jul 20, 2021
1 parent ec99555 commit ff6e85c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/commitlint-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Commit Lint"
on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v3.1.4

0 comments on commit ff6e85c

Please sign in to comment.