GeezerVison is showing github.com โ ๐ UPDATE: v0.2.0 by warengonzaga ยท Pull Request #8 ยท warengonzaga/magic-commit
Conversation
warengonzaga
commented
Oct 4, 2024
โข
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This pull request includes several updates to improve the functionality and user experience of the magicc CLI tool. The most important changes include the introduction of validation for the OpenAI API key, updates to the default model used for generating commit messages, and enhancements to the setup process.
API Key Validation:
source/utils/api.js: Added a function to validate the OpenAI API key by making a request to the OpenAI API and handling various response statuses.
Default Model and Configuration Updates:
source/utils/config.json: Updated configuration to include a new default model gpt-4o-mini, set a maximum diff size, and revised instructions for commit message categories.
source/utils/openai.js: Modified functions to use the new default model from the configuration and added logic to handle large diff sizes. [1] [2]
Setup and Installation:
contributing.md: Added setup instructions for installing the CLI app using yarn or npm, and noted the requirement for a Linux-based OS.
package.json: Added new scripts for setup and reset commands, specifically for Ubuntu.
Miscellaneous Improvements:
.npmrc: Added engine-strict-true to enforce strict engine compatibility.
README.md: Updated the description to mention the use of gpt-4o-mini as the default model for generating commit messages.
source/utils/commit.js: Changed the default answer for commit message confirmation to "N" for better user experience.
These changes collectively enhance the robustness and usability of the magicc tool, ensuring better validation, configuration flexibility, and ease of setup.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
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.