Skip to main content

Automated PR review bot using GPT-3.5-turbo

Project description

pr-reviewer

Streamline Your GitHub Pull Requests with AI, co-authored with GPT4.

🚀 Excited to announce our new open-source project: PR Review Bot, a GitHub Pull Request review bot powered by OpenAI's GPT-3.5-turbo! 🤖 PR Review Bot automatically reviews open PRs in your GitHub repository, providing helpful feedback and even approving or requesting changes based on the analysis of the PR text and comments. 🔧 Save time and effort in your development workflow by automating the initial review process, ensuring PRs adhere to your project's guidelines and best practices.

🌟 Key features:

  • Automatically reviews open PRs
  • Leverages OpenAI's GPT-3.5-turbo for intelligent analysis and feedback
  • Can be easily customized to fit your project needs
  • Easy to set up and use
  • Costs analysis of each review

Example

alt text

Install

pip install pr-review-bot

Setup

export PR_REVIEW_BOT_TOKEN='your github token'
export PR_REVIEW_BOT_OPEN_AI_KEY='your open ai key'
export PR_REVIEW_BOT_OWNER='github user'
export PR_REVIEW_BOT_REPO_NAME='github repo'

How to get Github token How to get Open AI key

Usage

To review all open pull requests:

pr-review-bot review-all-open-pr

To review a specific pull request:

pr-review-bot review-pr <PR nuber>

For help:

pr-review-bot --help

Testing

pytest --cov=pr_review_bot ./tests

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

pr-review-bot-0.2.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pr_review_bot-0.2.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pr-review-bot-0.2.1.tar.gz.

File metadata

  • Download URL: pr-review-bot-0.2.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pr-review-bot-0.2.1.tar.gz
Algorithm Hash digest
SHA256 65dc955d8589a1f02570d9d7c1471b9a81df7a4b43537e6927603d6ff3a36c02
MD5 7026891ae7305833aaccc5def57fbd6d
BLAKE2b-256 326b8c9b0f65513d99f385428c63abda696051d1636c3ec2398fef07998d3015

See more details on using hashes here.

File details

Details for the file pr_review_bot-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pr_review_bot-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pr_review_bot-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 748d2b7b97d2534888e175132edc85feb2c2c0acb7578a47bf5c2a4e3421516a
MD5 de34d6433a03b326063bef4808f01afa
BLAKE2b-256 2dea8b25f506dd74a100e0042664ce845047f366155547964e1cfb0e07ea6163

See more details on using hashes here.

Supported by

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