Skip to content

Commit 8177508

Browse files
authored
chore: enforce PR title semantic style (#559)
Introduce automated validation for Pull Request titles to ensure compliance with the Conventional Commits specification --------- Signed-off-by: Carlo Minotti <50220438+minottic@users.noreply.github.com>
1 parent 3caccc8 commit 8177508

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/commitlint.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Semantic Commit Validator
2+
3+
on:
4+
merge_group:
5+
types:
6+
- checks_requested
7+
8+
jobs:
9+
commitlint:
10+
name: Lint Squashed Commit
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: 24
21+
cache: npm
22+
23+
- name: Install Commitlint
24+
run: |
25+
npm install --save-dev @commitlint/config-conventional @commitlint/cli
26+
27+
- name: Validate Last Commit Message
28+
run: npx commitlint --last --verbose

0 commit comments

Comments
 (0)