jacob-ebey / ai-coder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI-Coder

AI-Coder is a command-line tool that uses AI to generate commit messages and pull request titles and bodies.

Installation

Get an OpenAI API key and set it as an environment variable called OPENAI_API_KEY.

Add to your package.json your configuration for the AI-Coder to generate PRs. For example, the configuration for this repo looks like this:

{
  "ai": {
    "repo": {
      "baseBranch": "main",
      "owner": "jacob-ebey",
      "name": "ai-coder"
    }
  }
}
npm install ai-coder

Usage

ai-coder <command>

Commands

  • commit: Commit staged changes with an AI generated commit message
  • pr: Generate a pull request with an AI generated title and body

Arguments

  • --help: Display help

About


Languages

Language:JavaScript 74.8%Language:TypeScript 25.2%