{"id":25543469,"url":"https://github.com/sudo-whodo/pr-genius","last_synced_at":"2026-02-18T00:04:24.873Z","repository":{"id":275097440,"uuid":"925061154","full_name":"sudo-whodo/pr-genius","owner":"sudo-whodo","description":"🤖 AI-powered Pull Request analysis bot that provides intelligent code reviews, impact analysis, and documentation updates","archived":false,"fork":false,"pushed_at":"2025-03-31T16:22:20.000Z","size":190,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T17:51:13.174Z","etag":null,"topics":["ai","automation","claude","code-review","github-actions","openrouter","pull-requests","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sudo-whodo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-31T06:32:05.000Z","updated_at":"2025-02-12T02:02:51.000Z","dependencies_parsed_at":"2025-01-31T07:28:54.241Z","dependency_job_id":"de4ca713-2d2a-43ae-9fd4-c5328790b932","html_url":"https://github.com/sudo-whodo/pr-genius","commit_stats":null,"previous_names":["sudo-whodo/pr-genius"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/sudo-whodo/pr-genius","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-whodo%2Fpr-genius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-whodo%2Fpr-genius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-whodo%2Fpr-genius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-whodo%2Fpr-genius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudo-whodo","download_url":"https://codeload.github.com/sudo-whodo/pr-genius/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-whodo%2Fpr-genius/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29563307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","automation","claude","code-review","github-actions","openrouter","pull-requests","python"],"created_at":"2025-02-20T07:19:33.072Z","updated_at":"2026-02-18T00:04:24.849Z","avatar_url":"https://github.com/sudo-whodo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Genius\n\nAn AI-powered pull request analyzer that provides detailed code reviews and documentation suggestions.\n\n## Features\n\n- Automated PR analysis with multiple LLM providers (OpenRouter, Ollama, AWS Bedrock)\n- Detailed code review with impact assessment and improvement suggestions\n- Documentation update recommendations\n- Support for customizable review prompts\n- Docker-based testing environment\n\n## Installation\n\n```bash\ngit clone https://github.com/sudo-whodo/pr-genius.git\ncd pr-genius\npip install -r pr-diff-bot/requirements.txt\n```\n\n## Usage\n\n### Basic Usage\n\n```bash\n# Using OpenRouter (default)\nexport GITHUB_TOKEN=your_token\nexport OPENROUTER_API_KEY=your_key\n./test-local.sh 123  # Analyze PR #123\n\n# Using Ollama\n./test-local.sh --provider ollama --dry-run 123\n\n# Using AWS Bedrock\nexport AWS_ACCESS_KEY_ID=your_key\nexport AWS_SECRET_ACCESS_KEY=your_secret\n./test-local.sh --provider bedrock 123\n```\n\n### Customizing Review Prompts\n\nYou can customize the review focus by setting environment variables:\n\n```bash\n# Customize code review focus (e.g., security)\nexport PR_REVIEW_SYSTEM_CONTENT='You are a security-focused code reviewer. Focus on:\n1. Security vulnerabilities\n2. Authentication issues\n3. Data validation\n4. Error handling\nProvide detailed security recommendations.'\n\n# Customize documentation review focus (e.g., API docs)\nexport PR_REVIEW_DOCS_SYSTEM_CONTENT='Focus on API documentation:\n1. API endpoint changes\n2. Request/response formats\n3. Authentication requirements\n4. Rate limits and quotas\nEnsure all API changes are well-documented.'\n\n# Run with custom prompts\n./test-local.sh --dry-run 123\n```\n\n### Using Ollama\n\nPR Genius supports using Ollama as an LLM provider. When using Ollama:\n\n1. Local Development:\n\n```bash\n# Start Ollama locally\nollama run deepseek-r1:1.5b\n\n# Run PR Genius with local Ollama\n./test-local.sh --provider ollama 123\n```\n\n2. Remote Ollama:\n\n```bash\n# Use remote Ollama instance\nexport OLLAMA_BASE_URL=http://your-ollama-server:11434\n./test-local.sh --provider ollama 123\n```\n\n3. Docker Environment:\n\n```bash\n# The test script automatically:\n# - Creates a Docker network\n# - Starts Ollama container\n# - Pulls required model\n# - Sets up proper networking\n./test-local.sh --provider ollama --dry-run 123\n```\n\n## Environment Variables\n\n| Variable                        | Description                     | Default                 |\n| ------------------------------- | ------------------------------- | ----------------------- |\n| `GITHUB_TOKEN`                  | GitHub Personal Access Token    | Required                |\n| `OPENROUTER_API_KEY`            | OpenRouter API Key              | Required for OpenRouter |\n| `AWS_ACCESS_KEY_ID`             | AWS Access Key                  | Required for Bedrock    |\n| `AWS_SECRET_ACCESS_KEY`         | AWS Secret Key                  | Required for Bedrock    |\n| `OLLAMA_BASE_URL`               | Ollama API URL                  | http://localhost:11434  |\n| `PR_REVIEW_SYSTEM_CONTENT`      | Custom code review instructions | Built-in prompt         |\n| `PR_REVIEW_DOCS_SYSTEM_CONTENT` | Custom docs review instructions | Built-in prompt         |\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -am 'feat: add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-whodo%2Fpr-genius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudo-whodo%2Fpr-genius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-whodo%2Fpr-genius/lists"}