From 6813a4dcabf6ba24f77cc948e1c957e86acc041b Mon Sep 17 00:00:00 2001 From: David Kaplan Date: Mon, 27 Oct 2025 10:57:15 -0400 Subject: [PATCH] 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 --- commitlint.config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/commitlint.config.js b/commitlint.config.js index 1784b5e571..cbdc55805d 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -5,10 +5,15 @@ module.exports = { ignores: [ (commit) => /^Merge commit '[a-f0-9]{40}'$/m.test(commit), (commit) => /^chore\(root\): publish modules/m.test(commit), - (commit) => commit.includes('Signed-off-by: dependabot[bot] '), + (commit) => + commit.includes('Signed-off-by: dependabot[bot] '), ], rules: { - 'scope-enum': async () => [2, 'always', (await readdir('modules')).concat('root', 'deps', 'scripts')], + 'scope-enum': async () => [ + 2, + 'always', + (await readdir('modules')).concat('root', 'deps', 'scripts', 'examples'), + ], 'footer-max-line-length': [0, 'always', Infinity], 'references-empty': [2, 'never'], },