Skip to content

Releases: christian-gama/autocommit

v1.5.0

22 Jun 22:51
Compare
Choose a tag to compare

πŸ”† Highlights

In this release v1.5.0, AutoCommit continues its evolution with new features and improvements aimed at streamlining system messages and enhancing the overall user experience. This version includes additions to the command suite, enhanced Vim mode in CLI prompts, and improvements in error handling during directory creation.

πŸ”¨ Improvements

  • Editing System Message: A new feature has been added that allows users to edit the system message used to generate commit messages. This provides the user with more control over commit messages and allows for better context understanding. In addition, a health check command has been incorporated to ensure the system message file always exists.
  • Command Suite Expansion: A new command to edit the system message has been introduced. This command is equipped with a health check functionality that runs before opening the system message, increasing system robustness.
  • AutoCommit Command Message: The autocommit command message has been refined by removing unnecessary information and clarifying the instructions. This enhancement aims to make the command more understandable and user-friendly.
  • Vim Mode in CLI Prompts: The Vim mode in CLI prompts has been enabled, making the user experience more fluid and comfortable, especially for those familiar with Vim.
  • Repository Interface Naming: The Repo interface has been renamed to ConfigRepo to better reflect its purpose. This small refactor adds clarity to the codebase and aids in understanding the system's design.
  • Directory Creation Error Handling: An improvement has been made to return an error when creating the directory fails, replacing the previous approach of silently ignoring the issue. This change will help in promptly identifying and rectifying any problems that may arise during the directory creation process.

πŸ› Bug Fixes

  • Commit Messages Regeneration: A fix has been implemented to ensure commit messages are regenerated by adding an instruction. This improvement ensures the uniqueness and contextuality of each commit message, enhancing the understandability of the project history.

v1.4.3

20 Jun 13:33
Compare
Choose a tag to compare

πŸ”† Highlights

In this release v1.4.3, AutoCommit has been enhanced with few bug fixes, improvements and features, focused on improving the quality of system messages, more efficient handling of git diffs and better management of timeouts.

πŸ”¨ Improvements

  • System Message Context: Improve the system message to provide more context through user input messages. This helps in better understanding the log messages and in turn provides better clarity to the users.
  • Git Diff Handling: Change the diff command to use minimal diff and reduce context to 2 lines. This reduces the number of tokens used and also updates the error message to be more concise. This will be especially helpful for users who deal with large diffs.
  • OpenAI Context Timeout: Increase the context timeout to 18 seconds for OpenAI. This ensures that AutoCommit doesn't face interruptions due to timeouts, especially in cases with slower internet connections.
  • AutoCommit CLI Options: Add icons to the CLI options to make them more visually appealing. This adds a layer of user-friendliness and makes navigation through the CLI much more intuitive.
  • Add an option to add an instruction to enhance the commit message. The instruction will be used to regenerate the commit message based on the provided instructions. This new option helps in providing more clarity and context to the generated commit messages.

v1.4.2

19 Jun 02:01
Compare
Choose a tag to compare

πŸ”† Highlights

In this release v1.4.2, AutoCommit has been augmented with new improvements and features that enhance user interactions and the quality of commit messages.

πŸ”¨ Improvements

  • OpenAI Model Handling: Added a new feature that prompts the user to switch OpenAI models when the maximum number of tokens is reached. This ensures a smoother user experience and reduces interruptions due to token limitations.

  • Commit Message Guidelines: The guidelines for creating commit messages have been updated to include new rules and clarifications. This will help users in composing more effective and standard-compliant commit messages.

  • Clipboard Command: Fixed the clipboard command to copy messages in the correct format for git commits. This update enhances the utility of the clipboard command by ensuring that the copied message is immediately usable.

  • System Token Usage: The number of tokens used in system input has been decreased without losing context. This improvement makes AutoCommit more efficient in handling tokens, which is especially beneficial for users with limited token quotas.

v1.4.1

17 Jun 04:22
Compare
Choose a tag to compare

πŸ”† Highlights

In this release v1.4.1, AutoCommit has been augmented with new improvements to the quality of commit messages.

πŸ”¨ Improvements

  • System message: Improve instructions for OpenAI. The system message contains more tokens, but increased the quality of commit messages.

v1.4.0

15 Jun 03:54
Compare
Choose a tag to compare

πŸ”† Highlights

In this release v1.4.0, Autocommit has been augmented with new features and optimizations. The main highlight of this release is the introduction of the 'set' command. Alongside, there has been an improvement in flag completion functionality and optimizations in the internal git diff command execution. The system message was rewritten to improve output by AI.

✨ New Features

  • Autocommit Command: The new set command has been introduced.
  • System Message Update: System messages have been updated, including an enhancement in system_msg.go that provides an updated message regarding the AutoCommit feature.

πŸ”¨ Improvements

  • Flag Completion Function: The flag completion function in setCmd has been refactored for better performance and reliability.
  • Internal Git Diff Command Optimization: The execution of the diff command within the internal git section has been optimized.
  • Documentation: The README.md file has been updated with information and instructions on how to use the new AutoCommit feature.
  • System message: The system message was rewritten to improve the message generated by AI.

πŸ› Bug Fixes

  • Configuration Update Fix: A bug in updateConfigCommandImpl.Execute method in command.go where an incorrect variable was being used has been fixed.

πŸ‘• Refactoring

  • Folder Structure: The folder structure has been reorganized for better maintenance and readability.
  • Log Fatal Replacement: Instances of log.Fatal have been replaced with panic for better error handling and feedback.