PR Review Agent
Basic Information
PR-Review-Agent is an automated GitHub pull request review agent that uses OpenAI to generate thoughtful, critical code reviews across multiple repositories. The agent periodically scans repositories listed in a repositories.txt file, fetches open PRs via the GitHub API, and uses the OpenAI o4-mini model to generate review comments. It posts those reviews as comments on PRs and tracks which PRs have been reviewed to avoid duplicates. The project is implemented in Python, is run from main.py, and is configurable via environment variables and command line options. The review behavior can be customized by editing the review_prompts in the review_pr function. The repository includes setup instructions, a list of prerequisites, and guidance for obtaining the required GitHub personal access token and OpenAI API key.