{"id":17267043,"url":"https://github.com/louis-7/ai-code-review","last_synced_at":"2025-04-14T08:40:30.546Z","repository":{"id":158480063,"uuid":"627781346","full_name":"Louis-7/ai-code-review","owner":"Louis-7","description":"Let AI do code review.","archived":false,"fork":false,"pushed_at":"2025-03-18T12:23:39.000Z","size":6586,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T17:05:04.771Z","etag":null,"topics":["ai","bot","chatgpt","code","code-review","codereview","codereview-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Louis-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-04-14T07:28:29.000Z","updated_at":"2025-03-18T08:38:15.000Z","dependencies_parsed_at":"2024-10-23T10:55:06.167Z","dependency_job_id":"a4e0f055-9041-40e8-8c81-d87053178969","html_url":"https://github.com/Louis-7/ai-code-review","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Louis-7%2Fai-code-review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Louis-7%2Fai-code-review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Louis-7%2Fai-code-review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Louis-7%2Fai-code-review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Louis-7","download_url":"https://codeload.github.com/Louis-7/ai-code-review/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248848495,"owners_count":21171387,"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","bot","chatgpt","code","code-review","codereview","codereview-bot"],"created_at":"2024-10-15T08:08:41.814Z","updated_at":"2025-04-14T08:40:30.538Z","avatar_url":"https://github.com/Louis-7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Code Review\n\n\u003cimg width=\"500\" alt=\"AI Code Review Banner\" src=\"https://github.com/Louis-7/ai-code-review/assets/12605300/e4a0bfb6-b1f4-4dd5-a2d7-7d68711531e9\"\u003e\n\nLet AI do code review for you! [Demo](https://github.com/Louis-7/ranking-board/pull/10)\n\nThis app is calling OpenAI chatGPT API to do code review for you.\n\n[GitHub Action](https://github.com/marketplace/actions/quick-ai-code-review) | [Self-host Instruction](https://github.com/Louis-7/ai-code-review/tree/main#host-it-by-yourself)\n\n## Install\n\n1. Go to **Settings** -\u003e **Secrets and variables** -\u003e **Actions** -\u003e **New repository secret**\n\n2. Create a repository secret named `OPENAI_API_KEY` and fill it with your API key\n\n   1. `AZURE_OPENAI_API_KEY` for Azure OpenAI\n\n   2. `DEEPSEEK_API_KEY` for DeepSeek\n\n3. Add the configurations to `.github/workflows/pr-code-review.yml`\n\n   1. [OpenAI example](https://github.com/Louis-7/ai-code-review/blob/main/examples/open-ai-example.yml)\n\n   2. [Azure OpenAI example](https://github.com/Louis-7/ai-code-review/blob/main/examples/azure-open-ai-example.yml)\n\n   3. [DeepSeek example](https://github.com/Louis-7/ai-code-review/blob/main/examples/deepseek-example.yml)\n\n4. Get more details about the available environment variables in [.env.action.example](https://github.com/Louis-7/ai-code-review/blob/main/.env.action.example)\n\n5. Create a pull request in your repository and let AI assistant you!\n\n### Host it by yourself\n\nYou can also host the code reviewer by your self. Just follow the Dev section.\n\n## Dev\n\nThe application is built on [Probot](https://github.com/probot/probot).\n\n### Setup\n\n```sh\n# Install dependencies\nnpm install\n\n# add environment variables\ncp .env.example .env\n\n# build app\nnpm run build\n\n# Run the bot\nnpm start\n```\n\nLearn more about [Probot configuration](https://probot.github.io/docs/configuration/).\n\n### Build\n\n```sh\n# build node.js app\nnpm run build\n\n# build GitHub Action\nnpm run build:action\n\n# build deployable azure function\nnpm run build:function\n```\n\n### Docker\n\nYou can also build docker image to deploy.\n\n```sh\n# 1. Build container\ndocker build -t protagonist-bot .\n\n# 2. Start container\ndocker run -e APP_ID=\u003capp-id\u003e -e PRIVATE_KEY=\u003cpem-value\u003e protagonist-bot\n```\n\n## License\n\nAI Code Review is released under the [Apache License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis-7%2Fai-code-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouis-7%2Fai-code-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis-7%2Fai-code-review/lists"}