Skip to content

Releases: heyodai/magic-commit

v0.6.2 - Fix newlines bug (#44)

09 Nov 21:40
45f2c85
Compare
Choose a tag to compare

What's Changed

  • Add guard logic to prevent crash when no newlines in response by @heyodai in #45

Full Changelog: v0.6.1...v0.6.2

v0.6.1 - Final submission state

09 Nov 04:29
0a3af1d
Compare
Choose a tag to compare
Add remaining files (#43)

v0.5.2 - Alpha build of VSCode extension

08 Nov 22:57
be711c1
Compare
Choose a tag to compare

What's Changed

  • Add alpha build of VSCode extension by @heyodai in #39

Full Changelog: v0.5.1...v0.5.2

v0.5.1 - Add `--no-load` flag

08 Nov 22:44
2138a83
Compare
Choose a tag to compare

What's Changed

  • Refactor run_magic_commit() function to add optional parameter for showing loading message by @heyodai in #36

Full Changelog: v0.5.0...v0.5.1

v0.5.0 - More QoL improvements

08 Nov 20:25
f444c37
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0 - QoL Improvements

08 Nov 18:39
d067360
Compare
Choose a tag to compare

What's Changed

  • Copy results to clipboard automatically from cli command by @heyodai in #31
  • Add exception handling for setting OpenAI API key by @heyodai in #33
  • Add loading animation during commit generation process by @heyodai in #34

Full Changelog: v0.3.0...v0.4.0

v0.3.0 - Fix README on PyPi

07 Nov 19:55
8d5729c
Compare
Choose a tag to compare
Add `README.md` description on PyPi (#26)

* Remove testing notebook

* Update version to 0.3.0, include authors and email, add description and long description content type, and include URL

- Updated the version in the setup.py file from 0.2.0 to 0.3.0 to reflect the current release.
- Added the authors' names and email addresses to provide contact information.
- Included a short description of the project, "Generate commit messages with OpenAI's GPT."
- Specified the long description in the README.md file and set the content type to "text/markdown" for proper rendering on project platforms.
- Provided the URL of the project repository, "https://github.com/heyodai/magic-commit", to give users easy access to the source code and project information.

v0.2.0 - Initial working PyPi release

06 Nov 22:17
aa57ed0
Compare
Choose a tag to compare
Fix the prompt creation logic (#22)

* Remove TODO comments (now tickets on GitHub repo)

* Run `black` and `isort` on existing codebase

* Add documentation comments

* Implement unit testing

* Rename `chat_completion.jinja` to `system.jinja`

Renamed the `chat_completion.jinja` template file to `system.jinja` to better reflect its purpose and functionality. This change improves code organization and enhances the readability of the template file names.

* Fix trailing whitespace and blank lines in `config.py` and `test_config.py`

Removed trailing whitespace and blank lines in the `config.py` and `test_config.py` files to adhere to PEP 8 guidelines. This change improves the readability and maintainability of the code.

* Include additional templates and package files in the setup configuration

Modified the `setup.py` file to include additional templates and package files in the setup configuration.

Changes:
- Changed the line `from setuptools import setup` to `from setuptools import setup, find_packages` to use the `find_packages()` function for automatic package discovery.
- Added the `include_package_data=True` line to include non-code files in the package.
- Added the `package_data` dictionary to specify the file patterns to include in each package.

This change ensures that additional templates and package files are included when the package is installed.

* Refactor imports and improve path handling in `magic_commit/__main__.py`

Updated the import statements in `magic_commit/__main__.py` to improve readability and adhere to PEP 8 style guidelines.

Changes:
- Grouped imports based on their source (standard library, third-party, local)
- Removed unused imports

Additionally, improved path handling by:
- Expanding the user's home directory if the tilde symbol is used in the directory path
- Converting relative paths to absolute paths using `os.path.abspath()`

These changes make the code more organized and easier to understand.

* Refactor commit message generation logic

Refactored the `generate_commit_message` function to use the `run_git_diff` function to retrieve the git diff instead of relying on the `commit_messages` parameter. This simplifies the function as it no longer needs to process and split the commit messages. The `render_template` function was also added to handle rendering the commit message template. These changes improve code readability and maintainability.

v0.1.0 - Initial proof-of-concept

06 Nov 17:31
11b6c2c
Compare
Choose a tag to compare
Rewrite as python cli tool (#5)

* Remove old files

* Update `.gitignore` with common Python usage

* Update the README

* Add proof-of-concept work

The pipeline is assembled, but the generated responses aren't great.
Prompt engineering is needed.