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 test_pr_review_bot.py

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.0.tar.gz (9.1 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.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pr-review-bot-0.2.0.tar.gz
  • Upload date:
  • Size: 9.1 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.0.tar.gz
Algorithm Hash digest
SHA256 0be6c6eb306e5376a2012d6a0c3a2dcb2d48e3dd47e62ba93ab3c298bf00f362
MD5 c271eed38e5340bde52d9ea6fc8f322a
BLAKE2b-256 935fc08ed1a07348479ad927510f2a3303b15a090f42606b7b194051ea6af929

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pr_review_bot-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b9a730cbeb45686b1dbbe8fada240238a319dee61ff4ba529cf82e4467500c0
MD5 8ff86807f717ef6570ae24097ddf3ab7
BLAKE2b-256 a42fba015f12fea97ec6a1b2f4e29d22163df1815efd86ed88d4c4d63f85f869

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