ruankie / auto-pr

Automatically generates detailed pull request messages with LLMs based on commit history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub stars GitHub last commit

auto-pr

Description

Automatically generates detailed pull request message suggestions based on commit history. This is done using GPT type large language models (LLMs) through Azure's OpenAI Service and LangChain.

Setup

  1. Set up your virtual env with all the required dependencies
    poetry install
  2. Set your environment variables in a file called .env (see .env.example)
  3. Create a resource and deploy a model using Azure OpenAI

Usage

Note: Whe using notebooks, make sure you activate the correct poetry environment. You can set your Python kernel to the value that gets returned when you run poetry run which python.

  1. Browse the example notebooks in notebooks/

Useful Resources

About

Automatically generates detailed pull request messages with LLMs based on commit history

License:MIT License


Languages

Language:Jupyter Notebook 74.3%Language:Python 25.7%