Skip to content

Commit 75537eb

Browse files
committed
ci: lint pull request title
1 parent f9d75a4 commit 75537eb

File tree

5 files changed

+1276
-0
lines changed

5 files changed

+1276
-0
lines changed

.github/workflows/lint-commit.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint Commit
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- edited
9+
10+
jobs:
11+
commitlint:
12+
runs-on: ubuntu-latest
13+
name: commitlint
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install Deps
18+
run: yarn install
19+
- name: Lint PR Title
20+
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ tableau-*.tar
3030

3131
/example/priv/static
3232
_site
33+
34+
node_modules

commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
}

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dependencies": {
3+
"@commitlint/config-conventional": "^18.1.0",
4+
"commitlint": "^18.2.0"
5+
}
6+
}

0 commit comments

Comments
 (0)