Use the @commitlint module for opencommit
masterThe @commitlint module allows opencommit to generate commit messages that strictly adhere to your existing commitlint configuration.
Key features include:
- Automatic Configuration Loading: It loads your
commitlintconfiguration directly from your project tree. - Rule-Based Prompting: It infers specific prompts for each individual
commitlintrule to ensure compliance. - AI-Driven Consistency: It uses OpenAI to generate commit messages that maintain consistency with the embedded
commitlintrules. - Smart Execution: The generation process will not run if the commit hash remains the same.
- Configuration Locality: The module stores its configuration near your existing
commitlintconfiguration files. - Prompt Replacement: It replaces the standard
conventional-commitprompt with a specializedcommitlintprompt to enforce your specific project standards.