-
Notifications
You must be signed in to change notification settings - Fork 43
Commit message linting #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 12 commits
c2f23f6
69c8262
ded8b1b
24c05a9
f7fd0b6
68cae46
161e5fa
b53fae1
4fbd098
470a690
8677abe
4975568
18c3066
030f142
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Commit Message Lint | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, edited] | ||
|
|
||
| jobs: | ||
| lint-commits: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout PR branch | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Lint commit messages | ||
| uses: wagoid/commitlint-github-action@v4 | ||
| with: | ||
| from: ${{ github.base_ref }} | ||
| to: ${{ github.head_ref }} | ||
| verbose: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| npx --no-install commitlint --edit $1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| npx --no-install cz |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| extends: ['@commitlint/config-conventional'], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "name": "identity-api", | ||
| "version": "1.0.0", | ||
| "description": "[](https://www.gnu.org/licenses/gpl-3.0) ", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't need these badges. Simple description is enough |
||
| "main": "index.js", | ||
|
|
||
| "config": { | ||
| "commitizen": { | ||
| "path": "cz-conventional-changelog" | ||
| } | ||
| }, | ||
| "scripts": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indent looks off. |
||
| "test": "echo \"No tests specified\"", | ||
| "prepare": "husky install", | ||
| "commit": "cz" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/PSMRI/Identity-API.git" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC", | ||
| "bugs": { | ||
| "url": "https://github.com/PSMRI/Identity-API/issues" | ||
| }, | ||
| "homepage": "https://github.com/PSMRI/Identity-API#readme", | ||
| "devDependencies": { | ||
| "@commitlint/cli": "^19.8.0", | ||
| "@commitlint/config-conventional": "^19.8.0", | ||
| "commitizen": "^4.3.1", | ||
| "cz-conventional-changelog": "^3.3.0", | ||
| "husky": "^9.1.7" | ||
| } | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.