diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-07-19 00:26:17 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-08-01 12:45:17 +0200 |
commit | 5f3f4263b4740dba726f155c21c7606235847b28 (patch) | |
tree | 853bb2dad33535661a1980fe23ad16013e11732e /.github/workflows/commitlint.config.js | |
parent | c642f3ac27aa842e374334d11291fd5129ab6887 (diff) | |
download | rneovim-5f3f4263b4740dba726f155c21c7606235847b28.tar.gz rneovim-5f3f4263b4740dba726f155c21c7606235847b28.tar.bz2 rneovim-5f3f4263b4740dba726f155c21c7606235847b28.zip |
ci: add commit linter to GitHub Actions
Diffstat (limited to '.github/workflows/commitlint.config.js')
-rw-r--r-- | .github/workflows/commitlint.config.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/commitlint.config.js b/.github/workflows/commitlint.config.js new file mode 100644 index 0000000000..5f10ffc6f4 --- /dev/null +++ b/.github/workflows/commitlint.config.js @@ -0,0 +1,35 @@ +module.exports = { + rules: { + 'body-leading-blank': [1, 'always'], + 'body-max-line-length': [2, 'always', 100], + 'footer-leading-blank': [1, 'always'], + 'footer-max-line-length': [2, 'always', 100], + 'header-max-length': [2, 'always', 100], + 'scope-case': [2, 'always', 'lower-case'], + 'subject-case': [ + 2, + 'never', + ['sentence-case', 'start-case', 'pascal-case', 'upper-case'], + ], + 'subject-empty': [2, 'never'], + 'subject-full-stop': [2, 'never', '.'], + 'type-case': [2, 'always', 'lower-case'], + 'type-empty': [2, 'never'], + 'type-enum': [ + 2, + 'always', + [ + 'build', + 'chore', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'test', + ], + ], + }, +}; |