Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: How to commit with the rules of commitlint config file #60

Open
raselSoftNode opened this issue Mar 28, 2023 · 5 comments
Open

Comments

@raselSoftNode
Copy link

raselSoftNode commented Mar 28, 2023

I have a commit lint config file before every commits it follows the guideline of my commit rules. so how can I ensure that your opeancommit message follows the rules of my commit config.

my commit rules is :

module.exports = {
  extends: ['@commitlint/config-conventional'],
  rules: {
    'body-leading-blank': [2, 'always'], // enforce a blank line between subject and body
    'footer-leading-blank': [2, 'always'], // enforce a blank line between body and footer
    'header-max-length': [2, 'always', 100], // enforce a maximum header length of 100 characters
    'body-empty': [2, 'never'], // enforce to write a body
    'scope-empty': [2, 'never'], // enforce a non-empty scope
    'subject-empty': [2, 'never'], // enforce a non-empty subject
    'subject-full-stop': [2, 'never', '.'], // enforce no trailing period in subject
    'type-empty': [2, 'never'], // enforce a non-empty type
    'type-enum': [
      2,
      'always',
      ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore'],
    ], // enforce a list of valid types
  },
};
@raselSoftNode raselSoftNode changed the title How to commit with the rules of commitlint config file Features: How to commit with the rules of commitlint config file Mar 28, 2023
@raselSoftNode raselSoftNode changed the title Features: How to commit with the rules of commitlint config file Feature: How to commit with the rules of commitlint config file Mar 28, 2023
@di-sukharev
Copy link
Owner

di-sukharev commented Mar 28, 2023 via email

@BlakeEddie
Copy link

@di-sukharev im flaky but this weekend if i remember i will try cause that this would be sick

@github-actions
Copy link

Stale issue message

@sebastienfi
Copy link
Contributor

sebastienfi commented Jun 18, 2023

@raselSoftNode @BlakeEddie Could you please review the PR and provide feedback?

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants