Skip to content

Commit

Permalink
ci: integrate commitlint into github pr
Browse files Browse the repository at this point in the history
  • Loading branch information
alextilot committed May 22, 2023
1 parent 1042b96 commit b3aa96a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: ci
on: pull_request

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
lint:
runs-on: ubuntu-latest
defaults:
Expand All @@ -17,3 +24,4 @@ jobs:
if: always() # get formatting errors even if there are errors above
- run: npm run lint
if: always() # get lint errors even if there are errors above

2 changes: 2 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
helpUrl:
"https://github.com/amelioro/ameliorate/blob/main/CONTRIBUTING.md#conventional-commits",
rules: {
"type-enum": [
2,
Expand Down

0 comments on commit b3aa96a

Please sign in to comment.