Skip to content

Commit 1fe993e

Browse files
committed
chore: add PR title checking
1 parent 180553e commit 1fe993e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check Pull Request
2+
on:
3+
pull_request:
4+
types: ["opened", "edited", "reopened", "synchronize"]
5+
6+
jobs:
7+
check-title:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/[email protected]
11+
- uses: pnpm/[email protected]
12+
- name: Use Node.js
13+
uses: actions/[email protected]
14+
with:
15+
node-version: 17
16+
check-latest: true
17+
cache: "pnpm"
18+
- run: pnpm install
19+
- run: echo '${{ github.event.pull_request.title }}' | pnpm commitlint

0 commit comments

Comments
 (0)