There was an error while loading. Please reload this page.
1 parent 4ee942b commit f6e2902Copy full SHA for f6e2902
1 file changed
.github/workflows/pr-lint.yml
@@ -0,0 +1,23 @@
1
+name: Lint PR Title
2
+
3
+on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - edited
8
9
+jobs:
10
+ lint-pr-title:
11
+ name: Lint PR Title
12
+ runs-on: ubuntu-24.04-arm
13
+ steps:
14
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
15
+ - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
16
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
17
+ with:
18
+ node-version-file: .node-version
19
+ cache: pnpm
20
+ - name: Install dependencies
21
+ run: pnpm install --ignore-scripts --frozen-lockfile --workspace-root
22
+ - name: Lint PR title
23
+ run: echo "${{ github.event.pull_request.title }}" | ./node_modules/.bin/commitlint > $GITHUB_STEP_SUMMARY
0 commit comments