Skip to content

Commit 9ef5be3

Browse files
committed
ci: commitlint
1 parent 3a4dd4a commit 9ef5be3

File tree

5 files changed

+1275
-0
lines changed

5 files changed

+1275
-0
lines changed

.github/workflows/lint-commit.yaml

Lines changed: 20 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ lsp-*.tar
2525
# Temporary files, for example, from tests.
2626
/tmp/
2727
gen_lsp.log
28+
node_modules

commitlint.config.js

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

package.json

Lines changed: 6 additions & 0 deletions
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)