Conversation
feat(git): enhance commit message generation with commitlint support - Add function to find and read commitlint config files - Update commit message prompt to include conventional commit format - Extend test suite for new commitlint-related functions
- Enhance generateCommitMessagePrompt to always include conventional commit format instructions - Improve readability of commitlint config formatting in generateCommitMessagePrompt - Restructure and expand test cases for generateCommitMessagePrompt - Fix linting issues with semicolon placement in test file
- Reorder commit types with numbered list - Add precedence rule for multiple types in one commit - Remove capitalization instruction for description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes Overview
This update focuses on improving the Git utilities and integrating Commitlint support. The main changes include:
Reason for Changes
These changes aim to improve the quality and consistency of commit messages by integrating Commitlint standards and providing more detailed guidance to users.
Detailed Description
Commitlint Integration: New functions
findCommitlintConfigandreadCommitlintConfighave been added to detect and parse Commitlint configuration files.Enhanced Commit Message Prompt: The
generateCommitMessagePromptfunction now includes detailed instructions for creating conventional commit messages and incorporates any detected Commitlint configuration.Version Update: The package version has been incremented from 0.3.16 to 0.3.17.
Expanded Test Coverage: New tests have been added to cover the Commitlint integration functionality and the enhanced commit message prompt generation.