Skip to content

truskovskiyk/pr-reviewer

Repository files navigation

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

About

Use LLM to help you with PR review

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages