Ankush Menat | 885e731 | 2022-07-19 12:00:53 +0530 | [diff] [blame] | 1 | name: Semantic Commits |
| 2 | |
| 3 | on: |
| 4 | pull_request: {} |
| 5 | |
| 6 | permissions: |
| 7 | contents: read |
| 8 | |
| 9 | concurrency: |
| 10 | group: commitcheck-erpnext-${{ github.event.number }} |
| 11 | cancel-in-progress: true |
| 12 | |
| 13 | jobs: |
| 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: |
Suraj Shetty | 881e95b | 2023-06-26 13:02:08 +0530 | [diff] [blame] | 24 | node-version: 18 |
Ankush Menat | 885e731 | 2022-07-19 12:00:53 +0530 | [diff] [blame] | 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 }} |