diff options
| author | Matthieu Coudron <teto@users.noreply.github.com> | 2021-08-02 00:08:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-02 00:08:31 +0200 |
| commit | 535c762ff7d8303a20047ef5f5b4466c2b78e237 (patch) | |
| tree | 2627aa1459b2eff97b5fc13065f478db9a6f30af /.github/workflows/commitlint.config_patch.js | |
| parent | 337b1b31ac12ee4351668e32fe116282efd3dcc3 (diff) | |
| parent | f54340d488d956cbf641be3d896b5276842d558f (diff) | |
| download | rneovim-535c762ff7d8303a20047ef5f5b4466c2b78e237.tar.gz rneovim-535c762ff7d8303a20047ef5f5b4466c2b78e237.tar.bz2 rneovim-535c762ff7d8303a20047ef5f5b4466c2b78e237.zip | |
Merge pull request #15129 from dundargoc/action/commitlint
ci: add commit linter to GitHub Actions.
Diffstat (limited to '.github/workflows/commitlint.config_patch.js')
| -rw-r--r-- | .github/workflows/commitlint.config_patch.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/commitlint.config_patch.js b/.github/workflows/commitlint.config_patch.js new file mode 100644 index 0000000000..986d80b2e0 --- /dev/null +++ b/.github/workflows/commitlint.config_patch.js @@ -0,0 +1,28 @@ +module.exports = { + parserPreset: { + parserOpts: { headerPattern: /^([^\(\):]*)(?:\((.*)\))?!?:(.*)$/ } + }, + 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], + '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', + [ + 'vim-patch', + ], + ], + }, +}; |