Skip to content

Commit 9b9ce0e

Browse files
Merge pull request #3882 from material-components:commitlint
PiperOrigin-RevId: 499343209
2 parents c70198a + a529a8d commit 9b9ce0e

File tree

3 files changed

+5926
-2633
lines changed

3 files changed

+5926
-2633
lines changed

.github/workflows/commitlint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: commitlint
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
commitlint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 18
14+
cache: npm
15+
16+
- run: npm ci
17+
- run: 'echo "${PR_TITLE}" | npx commitlint'
18+
env:
19+
PR_TITLE: ${{ github.event.pull_request.title }}

0 commit comments

Comments
 (0)