vivaxy / vscode-conventional-commits

💬Conventional Commits for VSCode.
https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits
MIT License
309 stars 32 forks source link

[QUESTION] Ability to define / limit commit types #330

Closed brady-sewall closed 8 months ago

brady-sewall commented 8 months ago

Is your feature request related to a problem? Please describe

I don't think so

Describe the solution you'd like

Does this extension allow for customizing / limiting commit types? For example, our build routine looks for the following:

Describe alternatives you've considered

Commitlint.js looks like it has a type-enum feature, but I don't understand where to configure that for this extension.

Additional context

I have Commitlint installed (not using Husky) and a commitlint.config.js file in the root of my repo.

This is the contents of my commitlint.config.js:

module.exports = {
  extends: ['@commitlint/config-conventional', '@commitlint/parse'],
  rules: {
    'type-enum': [
      2,
      'always',
      [
        'fix',
        'feat',
        'refactor',
        'perf',
        'style',
        'test',
        'build',
        'chore',
        'ci',
      ],
    ],
  },
};
vivaxy commented 8 months ago

Hi, @brady-sewall. This extension supports commitlint by reading commitlint config files. The type-enum rule is supported. See Readme for details.