diff --git a/.github/commitlint.config.js b/.github/commitlint.config.js new file mode 100644 index 0000000..c50801f --- /dev/null +++ b/.github/commitlint.config.js @@ -0,0 +1,13 @@ +const Configuration = { + + extends: ['@commitlint/config-conventional'], + + /* + * Any rules defined here will override rules from @commitlint/config-conventional + */ + rules: { + 'body-max-line-length': [2, 'always', 200], + }, +}; + +module.exports = Configuration; diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index af8a615..cace470 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -9,3 +9,5 @@ jobs: with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v5 + with: + configFile: "./.github/commitlint.config.js"