Skip to content

Commit e25078d

Browse files
author
Massimiliano Giovagnoli
committed
chore(.github): bump commitlint and add config
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
1 parent 5499c4e commit e25078d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/lint-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1919
with:
2020
fetch-depth: 0
21-
- uses: wagoid/commitlint-github-action@0d749a1a91d4770e983a7b8f83d4a3f0e7e0874e #v5.4.4
21+
- uses: wagoid/commitlint-github-action@0184f5a228ee06430bb9e67d65f73a1a6767496a # v6.2.0
2222
with:
2323
firstParent: true

commitlint.config.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const Configuration = {
2+
extends: ['@commitlint/config-conventional'],
3+
plugins: ['commitlint-plugin-function-rules'],
4+
rules: {
5+
'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'test', 'fix', 'sec']],
6+
'body-max-line-length': [1, 'always', 500],
7+
'subject-case': [2, 'always', ['lower-case', 'sentence-case', 'upper-case']],
8+
},
9+
/*
10+
* Whether commitlint uses the default ignore rules, see the description above.
11+
*/
12+
defaultIgnores: true,
13+
/*
14+
* Custom URL to show upon failure
15+
*/
16+
helpUrl:
17+
'https://github.com/projectcapsule/capsule-addon-fluxcd?tab=readme-ov-file#development',
18+
};
19+
20+
module.exports = Configuration;

0 commit comments

Comments
 (0)