{"id":14985898,"url":"https://github.com/mattsavarino/ai-code-review","last_synced_at":"2025-07-11T20:36:24.787Z","repository":{"id":250737880,"uuid":"833831016","full_name":"mattsavarino/ai-code-review","owner":"mattsavarino","description":"AI Code Review with GitHub Actions","archived":false,"fork":false,"pushed_at":"2024-08-14T21:46:28.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T22:11:51.627Z","etag":null,"topics":["actions","ai","azure","code-review","openai"],"latest_commit_sha":null,"homepage":"","language":null,"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/mattsavarino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-25T21:04:11.000Z","updated_at":"2025-01-16T18:00:45.000Z","dependencies_parsed_at":"2024-09-25T00:32:44.852Z","dependency_job_id":null,"html_url":"https://github.com/mattsavarino/ai-code-review","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"908b0b23dc654746d4c6d2e9c9915ba158dfe56a"},"previous_names":["mattsavarino/ai-code-review"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsavarino%2Fai-code-review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsavarino%2Fai-code-review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsavarino%2Fai-code-review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsavarino%2Fai-code-review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattsavarino","download_url":"https://codeload.github.com/mattsavarino/ai-code-review/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487691,"owners_count":21112190,"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":["actions","ai","azure","code-review","openai"],"created_at":"2024-09-24T14:11:51.063Z","updated_at":"2025-04-11T22:11:56.242Z","avatar_url":"https://github.com/mattsavarino.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Code Review\n\n* Automatically generate an AI code review on every PR.\n* Easily customize [the AI prompt](./.github/workflows/ai_code_review.py#L144) as needed.\n* Works with both Azure OpenAI or OpenAI APIs.\n* Add to any GitHub repo with only 3 files.\n* **[View Sample AI Code Review](https://github.com/mattsavarino/ai-code-review/pull/1)**\n\n## Solution Files\n\n1. **[ai_code_review.yml](./.github/workflows/ai_code_review.yml)**\u003cbr\u003e\nGitHub Actions file triggered upon pull request.\n\n2. **[ai_code_review.py](./.github/workflows/ai_code_review.py)**\u003cbr\u003e\nPython script to generate AI code review.\n\n3. **[requirements.txt](./requirements.txt)**\u003cbr\u003e\nPython package dependencies (only `openai` and `requests`).\n\n## How to Use\n1. Open or create a GitHub repo.\n1. Confirm or create the [.github/workflows/](./.github/workflows/) directory.\n1. Add 3 files from this repo to your project.\n1. Choose your AI provider:\n    * **Azure OpenAI** is highly recommended for private and enterprise use.\n    * **OpenAI** is for public repos or when you give training consent.\n1. Update your GitHub repo settings:\n    1. Browse to Repo \u003e Settings \u003e Security and variables \u003e Actions\n    1. Add action secrets:\n        * `OPENAI_API_KEY`\n        * `AZURE_OPENAI_ENDPOINT`\n        * `AZURE_OPENAI_API_KEY`\n        * `AZURE_OPENAI_API_VERSION` (optional, default `2024-02-15-preview`)\n        * `OPENAI_MODEL_NAME` (optional, default `gpt-4`, or Azure deployment name)\n        * [Learn more about encrypted secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)\n1. Create new branch, push changes, and create new PR.\n1. Improve your code based on the automated AI feedback.\n    * Comment with AI code review posted on PR.\n    * `workflow.log` created within each action run.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattsavarino%2Fai-code-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattsavarino%2Fai-code-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattsavarino%2Fai-code-review/lists"}