wsfed
7.0.17.0.2
.github/workflows/commitlint.yml+
.github/workflows/commitlint.ymlNew file+25
Index: package/.github/workflows/commitlint.yml
===================================================================
--- package/.github/workflows/commitlint.yml
+++ package/.github/workflows/commitlint.yml
@@ -0,0 +1,25 @@
+name: Lint Commits
+
+on:
+ pull_request:
+
+jobs:
+ commitlint:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ with:
+ fetch-depth: 0
+ persist-credentials: false
+
+ - name: Setup Node.js
+ uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
+ with:
+ node-version: '24'
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: Validate commit messages
+ run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose