Git Product home page Git Product logo

ziom's Introduction

Ziom - an OpenAI-powered commiting assistant

A CLI tool for generating relevant commit messages for the staged changes.

Installation

To be able to use ziom in any git repository, clone the repo, build it using

cargo build --release

And then put the resulting binary in your /usr/local/bin folder.

How to use?

Kapture 2023-03-27 at 09 59 42

Before using a tool itself you need to set up your OpenAI API key. To do this use:

ziom config <YOUR:API:KEY>

To confirm that your key was set up correctly use:

ziom config

which should show you API key in a terminal.

To generate a commit message for your staged changes use

ziom generate

while being in a proper location (please make sure that you're using this tool inside of your project directory and you have git set up correctly).

Future improvements

  • Improve response parsing
  • Assert that the current CLI's location is a valid git repository
  • Add an option to add project's README file to prompt. This should give an API more context and generate more accurate results.
  • Clean up the code.
  • Come up with a proper error handling.
  • Add the possibility to edit a message in CLI, copy to clipboard on edit end.
  • Auto-commit
  • simple UI and awaiting indicator
  • Instead of running a proccess for a while when generating a message, keep a process running in the background - questionable

Already kinda deprecated because of the Copilot lmao. Feel free to open issues and pull requests though.

ziom's People

Contributors

jakubsapko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.