Skip to content

Commit cd9f0fb

Browse files
committed
chore: update configuration of commitlint
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
1 parent 00f525e commit cd9f0fb

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

.github/workflows/linter.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ permissions:
77

88
on:
99
push:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111
pull_request:
12-
branches: [ "main" ]
12+
branches: ["main"]
1313
workflow_dispatch:
1414
inputs:
1515
commit_sha:
@@ -29,9 +29,7 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131
- name: Check Commit Lint
32-
with:
33-
configFile: "./.commitlint.config.js"
34-
uses: wagoid/commitlint-github-action@v6.0.1
32+
uses: wagoid/commitlint-github-action@v6
3533

3634
lint_check:
3735
name: Rust - lint_${{ matrix.lint_projects }}
@@ -63,14 +61,14 @@ jobs:
6361
uses: actions/cache@v4
6462
continue-on-error: false
6563
with:
66-
path: |
67-
~/.cargo/bin
68-
~/.cargo/registry
69-
~/.cargo/git/db/
70-
key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }}
71-
restore-keys: |
72-
${{ runner.os }}-sdk-rust-
64+
path: |
65+
~/.cargo/bin
66+
~/.cargo/registry
67+
~/.cargo/git/db/
68+
key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }}
69+
restore-keys: |
70+
${{ runner.os }}-sdk-rust-
7371
- name: Check cargo version
7472
run: cargo --version
7573
- name: Run ${{ matrix.lint_projects }}
76-
run: make -f Makefile lint_${{ matrix.lint_projects }}
74+
run: make -f Makefile lint_${{ matrix.lint_projects }}

commitlint.config.js renamed to commitlint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ module.exports = {
22
parserPreset: 'conventional-changelog-conventionalcommits',
33
rules: {
44
'body-leading-blank': [1, 'always'],
5-
'body-max-line-length': [2, 'always', 100],
5+
'body-max-line-length': [2, 'always', 120],
66
'footer-leading-blank': [1, 'always'],
7-
'footer-max-line-length': [2, 'always', 100],
8-
'header-max-length': [2, 'always', 100],
7+
'footer-max-line-length': [2, 'always', 120],
8+
'header-max-length': [2, 'always', 120],
99
'subject-case': [
1010
2,
1111
'never',

0 commit comments

Comments
 (0)