Skip to content

Commit e646ff1

Browse files
committed
chore(ci): use commitlint-github-action
Signed-off-by: Ricardo Arturo Cabral Mejía <[email protected]>
1 parent 85ac61c commit e646ff1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install package dependencies
2727
run: npm ci
2828
- name: Run commitlint
29-
run: npx commitlint --from=origin/$GITHUB_BASE_REF
29+
uses: wagoid/commitlint-github-action@v5
3030
lint:
3131
name: Lint code
3232
runs-on: ubuntu-latest

commitlint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional']
2+
extends: ['@commitlint/config-conventional'],
3+
parserPreset: 'conventional-changelog-conventionalcommits',
4+
rules: {
5+
'body-max-line-length': [2, 'always', 250],
6+
},
37
}

0 commit comments

Comments
 (0)