-
Notifications
You must be signed in to change notification settings - Fork 2
Add prefix toggle feature for commit messages #19
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
Conversation
- Introduced a closure-based prefixState for managing the state of commit message prefixes safely. - Added functionality to enable or disable commit message prefixes through a new prefix command. - Updated the
|
Caution Review failedThe pull request is closed. WalkthroughA new feature was added to allow toggling of commit message prefixes via a CLI command. The prefix state is now managed with a closure-based object, persisted in the configuration, and reflected in commit message generation. The configuration display and CLI were updated to support and show the prefix state. The package version was incremented. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant PrefixState
participant Config
User->>CLI: Run "prefix" command
CLI->>PrefixState: setEnabled(value)
PrefixState->>Config: Save prefixEnabled state
Config-->>CLI: Confirm save
CLI-->>User: Show updated prefix state
sequenceDiagram
participant User
participant CLI
participant PrefixState
participant Config
participant CommitMsgGen
User->>CLI: Run commit command
CLI->>Config: Load config (including prefixEnabled)
Config->>PrefixState: Set state
CLI->>PrefixState: isEnabled()
PrefixState-->>CLI: Return enabled/disabled
CLI->>CommitMsgGen: Generate message (with/without prefix)
CommitMsgGen-->>User: Show commit message
Possibly related issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Chores