We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5604339 commit 98a6202Copy full SHA for 98a6202
1 file changed
.github/workflows/commit-lint.yml
@@ -9,6 +9,29 @@ permissions:
9
pull-requests: read
10
11
jobs:
12
+ lint-pr-title:
13
+ name: Lint PR Title
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: '20'
23
24
+ - name: Install commitlint
25
+ run: |
26
+ npm install --save-dev @commitlint/cli@18.4.3 @commitlint/config-conventional@18.4.3
27
28
+ - name: Validate PR title
29
+ env:
30
+ PR_TITLE: ${{ github.event.pull_request.title }}
31
32
+ echo "Validating PR title: $PR_TITLE"
33
+ echo "$PR_TITLE" | npx commitlint --verbose
34
35
commitlint:
36
name: Lint Commit Messages
37
runs-on: ubuntu-latest
0 commit comments