Skip to content

Add commitlint support#92

Merged
cardmagic merged 3 commits intomainfrom
add-commitlint-support
Feb 19, 2025
Merged

Add commitlint support#92
cardmagic merged 3 commits intomainfrom
add-commitlint-support

Conversation

@cardmagic
Copy link
Contributor

Changes Overview

This update focuses on improving the Git utilities and integrating Commitlint support. The main changes include:

  1. Adding Commitlint configuration detection and parsing.
  2. Enhancing the commit message generation prompt.
  3. Updating the package version.
  4. Expanding test coverage for new functionalities.

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

  1. Commitlint Integration: New functions findCommitlintConfig and readCommitlintConfig have been added to detect and parse Commitlint configuration files.

  2. Enhanced Commit Message Prompt: The generateCommitMessagePrompt function now includes detailed instructions for creating conventional commit messages and incorporates any detected Commitlint configuration.

  3. Version Update: The package version has been incremented from 0.3.16 to 0.3.17.

  4. Expanded Test Coverage: New tests have been added to cover the Commitlint integration functionality and the enhanced commit message prompt generation.

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
@cardmagic cardmagic self-assigned this Feb 19, 2025
- Reorder commit types with numbered list
- Add precedence rule for multiple types in one commit
- Remove capitalization instruction for description
@cardmagic cardmagic merged commit 82e3a97 into main Feb 19, 2025
2 checks passed
@cardmagic cardmagic deleted the add-commitlint-support branch February 19, 2025 17:35
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

Successfully merging this pull request may close these issues.

1 participant