File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "extends" : [" @commitlint/config-conventional" ]
3+ }
Original file line number Diff line number Diff line change 1313 uses : actions/checkout@v4
1414
1515 - name : MegaLinter
16- uses : oxsecurity/megalinter/flavors/documentation@v9
16+ uses : oxsecurity/megalinter/flavors/documentation@v9
17+
18+ commitlint :
19+ runs-on : ubuntu-latest
20+ name : Conventional Commit Validation
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+
27+ - name : Setup node
28+ uses : actions/setup-node@v4
29+ with :
30+ node-version : 20
31+
32+ - name : Validate PR commits with commitlint
33+ run : |
34+ npm install --no-save @commitlint/cli @commitlint/config-conventional
35+ npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
You can’t perform that action at this time.
0 commit comments