Skip to main content

Automates PR creation on GitHub using GPT-3 for description generation based on commit messages.

Project description

PRGenius

PRGenius automates the creation of pull requests on GitHub by leveraging OpenAI's GPT-3 to generate meaningful and detailed descriptions from your commit messages. It streamlines the PR process, making it easier and more efficient for developers.

Features

  • Automated PR Descriptions: Generate detailed PR descriptions from commit messages using GPT-3.
  • Flexible: Works with any GitHub repository, supporting customizable base and head branches.
  • Easy Integration: Seamlessly integrates into your development workflow with minimal setup.

Getting Started

Prerequisites

  • Python 3.7+
  • A GitHub account
  • An OpenAI API key

Installation

Install PRGenius using pip:

pip install prgenius

Configuration

Before using PRGenius, configure your environment with the necessary credentials:

  1. GitHub Token: Create a GitHub Personal Access Token (PAT) with repository access. Follow the instructions on GitHub to create a token.

  2. OpenAI API Key: Obtain an API key by creating an account at OpenAI and accessing your API keys section.

Set the following environment variables:

GITHUB_REPO_OWNER=<your-github-username>
GITHUB_REPO_NAME=<your-repository-name>
GITHUB_TOKEN=<your-github-token>
OPENAI_API_KEY=<your-openai-api-key>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PRGenius-0.1.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

PRGenius-0.1.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page