blob: 1744bc33a9ecfb1121002fc4cae28f73e4dcdf76 [file] [log] [blame]
Ankush Menat885e7312022-07-19 12:00:53 +05301name: Semantic Commits
2
3on:
4 pull_request: {}
5
6permissions:
7 contents: read
8
9concurrency:
10 group: commitcheck-erpnext-${{ github.event.number }}
11 cancel-in-progress: true
12
13jobs:
14 commitlint:
15 name: Check Commit Titles
16 runs-on: ubuntu-latest
17 steps:
18 - uses: actions/checkout@v3
19 with:
20 fetch-depth: 200
21
22 - uses: actions/setup-node@v3
23 with:
24 node-version: 14
25 check-latest: true
26
27 - name: Check commit titles
28 run: |
29 npm install @commitlint/cli @commitlint/config-conventional
30 npx commitlint --verbose --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}