Skip to content

Commit aae5de2

Browse files
committed
ci: add lint-pr-tile
1 parent 7566908 commit aae5de2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint PR title
2+
on:
3+
pull_request:
4+
types:
5+
- edited
6+
- opened
7+
- reopened
8+
- synchronize
9+
jobs:
10+
lint-pr-title:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
15+
16+
- uses: ./.github/actions/setup
17+
18+
- name: Install commitlint
19+
run: |
20+
pnpm i -D -w commitlint @commitlint/config-conventional
21+
22+
- name: Validate PR title
23+
run: echo "${{ github.event.pull_request.title }}" | pnpm dlx commitlint -x '@commitlint/config-conventional'

0 commit comments

Comments
 (0)