Giter Club home page Giter Club logo

gitlexjs's Introduction

npm version

GitLexJS πŸš€βœ¨

GitLexJS is a command-line tool that uses the power of AI to generate meaningful commit messages for your Git changes. Leveraging OpenAI's GPT models, GitLexJS analyzes your code diffs and crafts commit messages that accurately reflect the changes you've made. Say goodbye to the struggle of coming up with commit messages and let GitLexJS do the work for you! πŸŽ‰

Table of Contents

Prerequisites

Ensure you have Node.js and npm installed. If not, download and install them from Node.js's official site.

Important: You will also need an OpenAI API key. See API Key Configuration below.

Installation πŸ“¦

Install GitLexJS globally:

npm install -g gitlexjs

Usage πŸš€

GitLexJS uses an interactive menu for user input.

To start the tool, simply run:

gitlex

You will be presented with a list of options:

  • Generate a commit message
  • Set API Key
  • Replace API Key
  • Delete my API Key
  • Check if API key is set
  • Select OpenAI model
  • Show version
  • Exit

Select the option you want by using the arrow keys and pressing Enter.

Note: The tool will prompt you for the OpenAI API key if it's not found in the configuration file. Your API key will be stored locally in the .gitlex-config.json file.

API Key Configuration πŸ”‘

For GitLexJS to work, you'll need an OpenAI API key:

  1. Sign up for an API key with OpenAI.
  2. Run GitLexJS and select the appropriate option from the interactive menu to set, replace, or delete your API key. The key is then stored locally and securely in .gitlex_config.json.

⚠️ Note: Never share your API key or commit it directly to your codebase.

Roadmap πŸ—ΊοΈβœ¨

Join us in refining your commit messages. Look into our future plans in the ROADMAP.md file. Feedback, contributions, and suggestions are always welcome!

Development Workflow πŸ› 

For contributors, we follow the gitflow workflow:

  • Develop: Our main development branch.
  • Release: For final testing before a release.
  • Main: Stable releases are merged here.

Local Development Setup:

  1. Clone the repository:
git clone https://github.com/krjordan/GitLexJS.git
cd GitLexJS
  1. Install dependencies:
npm install

Running the Application:

To run the application locally, use the following command:

npm start

Building the Application:

To build the application, use the following command:

npm run build

Linting:

To run the linter, use the following command:

npm run lint

Testing:

To run tests, use the following command:

npm run test

Contributing 🀝

Your contributions are eagerly awaited! From bug reports, feature requests to new ideas – share them all. Dive into the CONTRIBUTING.md file for guidance.

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Raise a pull request detailing your additions.

License πŸ“„

GitLexJS is open-sourced under the MIT License. Dive into the LICENSE.md for all the specifics.

gitlexjs's People

Contributors

krjordan 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.