Skip to content

Commit

Permalink
ci: commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Nov 7, 2023
1 parent ad849f7 commit 9d1b89c
Show file tree
Hide file tree
Showing 4 changed files with 942 additions and 16 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint Commit
on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited

jobs:
commitlint:
runs-on: ubuntu-latest
name: commitlint

steps:
- uses: actions/checkout@v4
- name: Install Deps
run: yarn install
- name: Lint PR Title
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,15 @@
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@commitlint/config-conventional": "^18.1.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vscode/test-electron": "^2.3.0",
"commitlint": "^18.2.0",
"eslint": "^8.36.0",
"eslint-plugin-prettier": "^4.2.1",
"glob": "^8.1.0",
Expand All @@ -205,4 +207,4 @@
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
}
}
}
Loading

0 comments on commit 9d1b89c

Please sign in to comment.