Skip to content

Commit

Permalink
Merge pull request #72 from zama-ai/chore/add-commitlint
Browse files Browse the repository at this point in the history
ci: add commitlint
  • Loading branch information
aquint-zama committed Feb 2, 2024
2 parents ce9f228 + 09cafda commit 202c40e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/config/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
21 changes: 21 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run commitlint on PR

on:
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install commitlint
run: |
npm install @commitlint/{cli,config-conventional}
- name: Validate all commits from PR
run: npx commitlint --config .github/config/commitlint.config.js --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 comments on commit 202c40e

Please sign in to comment.