{"id":26167460,"url":"https://github.com/champ96k/ai-code-review-action","last_synced_at":"2026-03-14T07:36:12.448Z","repository":{"id":280496277,"uuid":"942183789","full_name":"champ96k/ai-code-review-action","owner":"champ96k","description":"AI-powered GitHub PR Code Reviewer using Google Gemini AI","archived":false,"fork":false,"pushed_at":"2025-05-23T19:39:56.000Z","size":17,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T16:11:40.958Z","etag":null,"topics":["ai","ai-tools","code-review","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/champ-ai-code-review","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/champ96k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-03T17:54:10.000Z","updated_at":"2025-05-23T19:39:59.000Z","dependencies_parsed_at":"2025-03-03T19:25:51.001Z","dependency_job_id":"fe75db3a-9ed8-408d-a905-281a1c861da2","html_url":"https://github.com/champ96k/ai-code-review-action","commit_stats":null,"previous_names":["champ96k/ai-code-review-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/champ96k/ai-code-review-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champ96k%2Fai-code-review-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champ96k%2Fai-code-review-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champ96k%2Fai-code-review-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champ96k%2Fai-code-review-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/champ96k","download_url":"https://codeload.github.com/champ96k/ai-code-review-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champ96k%2Fai-code-review-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263711145,"owners_count":23499829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","ai-tools","code-review","github-actions"],"created_at":"2025-03-11T17:37:15.388Z","updated_at":"2026-03-14T07:36:07.405Z","avatar_url":"https://github.com/champ96k.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Code Review GitHub Action\n\nA GitHub Action that automatically reviews pull requests using Google's Gemini AI. This action analyzes code changes and provides intelligent feedback directly on your pull requests.\n\n## Features\n\n- 🤖 Automated code review using Google's Gemini AI\n- 📝 Detailed feedback on code changes\n- 🔄 Runs automatically on pull requests\n- 🎯 Configurable to run on specific branches\n- 🔒 Secure handling of API keys\n- 🛠️ Improved workspace handling\n- 📦 Optimized Docker configuration\n\n## Usage\n\n### Basic Setup\n\nCreate a new file `.github/workflows/ai_review.yml` in your repository:\n\n```yaml\nname: Champ AI Code Review\non:\n  pull_request:\n    types: [opened, synchronize, reopened]\n    branches:\n      - master  # Only run on PRs targeting master branch\n\npermissions:\n  contents: read\n  pull-requests: write\n\njobs:\n  ai_review:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v4\n\n      - name: Run AI Code Review\n        uses: champ96k/ai-code-review-action@v1.2\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          google_api_key: ${{ secrets.GOOGLE_API_KEY }}\n```\n\n### Required Secrets\n\n1. `GITHUB_TOKEN`: Automatically provided by GitHub Actions\n2. `GOOGLE_API_KEY`: Your Google Gemini API key\n   - Get it from [Google AI Studio](https://makersuite.google.com/app/apikey)\n   - Add it in your repository settings under Settings → Secrets and variables → Actions\n\n### Configuration Options\n\nThe action accepts the following inputs:\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| `github_token` | Yes | GitHub token for accessing PR details |\n| `google_api_key` | Yes | Google Gemini API key for AI analysis |\n\n## How It Works\n\n1. When a pull request is created or updated, the action automatically triggers\n2. It fetches the code changes from the PR\n3. Sends the changes to Google's Gemini AI for analysis\n4. Posts the AI's review as a comment on the PR\n\n## Example Output\n\nThe action will post a comment on your PR that looks like this:\n\n```\n✅ LGTM!\n```\n\nOr if there are issues:\n\n```\nHere are some suggestions for improvement:\n\n1. Consider adding error handling in the data processing function\n2. The variable naming could be more descriptive\n3. Missing documentation for the new API endpoint\n```\n\n## Version History\n\n### v1.2 (Latest)\n- 🐛 Fixed workspace path issues in Docker configuration\n- 🔧 Improved argument handling for better reliability\n- 📦 Updated Docker setup for better performance\n- 🛠️ Enhanced error handling and logging\n\n### v1.1\n- ✨ Added support for multiple file reviews\n- 🔍 Improved code analysis accuracy\n- 📝 Enhanced review comment formatting\n\n### v1.0\n- 🚀 Initial release\n- 🤖 Basic AI code review functionality\n- 🔒 Secure API key handling\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. Here's how you can contribute:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some 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 file for details.\n\n## Support\n\nIf you encounter any issues or have questions, please [open an issue](https://github.com/champ96k/ai-code-review-action/issues) on GitHub.\n\n## Latest Updates\n\nThe latest version (v1.2) includes several improvements:\n- Fixed workspace path issues that were causing file not found errors\n- Improved Docker configuration for better reliability\n- Enhanced error handling and logging\n- Optimized performance with better workspace management\n\nTo use the latest version, make sure to specify `@v1.2` in your workflow file:\n```yaml\nuses: champ96k/ai-code-review-action@v1.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamp96k%2Fai-code-review-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchamp96k%2Fai-code-review-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamp96k%2Fai-code-review-action/lists"}