Skip to content

Commit 6813a4d

Browse files
davidkaplanbitgollm-git
andcommitted
feat(root): allow "examples" as a commit scope
Update commitlint config to include "examples" in the list of allowed scopes for commit messages. Issue: BTC-2645 Co-authored-by: llm-git <[email protected]>
1 parent fe3cfaf commit 6813a4d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

commitlint.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ module.exports = {
55
ignores: [
66
(commit) => /^Merge commit '[a-f0-9]{40}'$/m.test(commit),
77
(commit) => /^chore\(root\): publish modules/m.test(commit),
8-
(commit) => commit.includes('Signed-off-by: dependabot[bot] <[email protected]>'),
8+
(commit) =>
9+
commit.includes('Signed-off-by: dependabot[bot] <[email protected]>'),
910
],
1011
rules: {
11-
'scope-enum': async () => [2, 'always', (await readdir('modules')).concat('root', 'deps', 'scripts')],
12+
'scope-enum': async () => [
13+
2,
14+
'always',
15+
(await readdir('modules')).concat('root', 'deps', 'scripts', 'examples'),
16+
],
1217
'footer-max-line-length': [0, 'always', Infinity],
1318
'references-empty': [2, 'never'],
1419
},

0 commit comments

Comments
 (0)