{"id":13645745,"url":"https://github.com/villesau/ai-codereviewer","last_synced_at":"2025-12-24T13:07:56.231Z","repository":{"id":149140434,"uuid":"617664348","full_name":"freeedcom/ai-codereviewer","owner":"freeedcom","description":"AI Code Reviewer: Enhance your GitHub workflow with AI-powered code review! Get intelligent feedback and suggestions on pull requests using OpenAI's GPT-4 API, improving code quality and saving developers time.","archived":false,"fork":false,"pushed_at":"2024-08-19T14:25:31.000Z","size":210,"stargazers_count":631,"open_issues_count":38,"forks_count":597,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-08T21:03:05.670Z","etag":null,"topics":["ai","code-review","github-actions","openai"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/freeedcom.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":"2023-03-22T21:15:19.000Z","updated_at":"2024-11-07T19:18:51.000Z","dependencies_parsed_at":"2024-06-18T21:13:23.891Z","dependency_job_id":"d3a6dd77-149b-4afa-99a0-3d107c58c043","html_url":"https://github.com/freeedcom/ai-codereviewer","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeedcom%2Fai-codereviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeedcom%2Fai-codereviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeedcom%2Fai-codereviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeedcom%2Fai-codereviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeedcom","download_url":"https://codeload.github.com/freeedcom/ai-codereviewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223873126,"owners_count":17217881,"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","code-review","github-actions","openai"],"created_at":"2024-08-02T01:02:40.952Z","updated_at":"2025-12-24T13:07:50.834Z","avatar_url":"https://github.com/freeedcom.png","language":"TypeScript","funding_links":[],"categories":["Openai","TypeScript"],"sub_categories":[],"readme":"# AI Code Reviewer\n\nAI Code Reviewer is a GitHub Action that leverages OpenAI's GPT-4 API to provide intelligent feedback and suggestions on\nyour pull requests. This powerful tool helps improve code quality and saves developers time by automating the code\nreview process.\n\n## Features\n\n- Reviews pull requests using OpenAI's GPT-4 API.\n- Provides intelligent comments and suggestions for improving your code.\n- Filters out files that match specified exclude patterns.\n- Easy to set up and integrate into your GitHub workflow.\n\n## Setup\n\n1. To use this GitHub Action, you need an OpenAI API key. If you don't have one, sign up for an API key\n   at [OpenAI](https://beta.openai.com/signup).\n\n2. Add the OpenAI API key as a GitHub Secret in your repository with the name `OPENAI_API_KEY`. You can find more\n   information about GitHub Secrets [here](https://docs.github.com/en/actions/reference/encrypted-secrets).\n\n3. Create a `.github/workflows/main.yml` file in your repository and add the following content:\n\n```yaml\nname: AI Code Reviewer\n\non:\n  pull_request:\n    types:\n      - opened\n      - synchronize\npermissions: write-all\njobs:\n  review:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@v3\n\n      - name: AI Code Reviewer\n        uses: your-username/ai-code-reviewer@main\n        with:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)\n          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}\n          OPENAI_API_MODEL: \"gpt-4\" # Optional: defaults to \"gpt-4\"\n          exclude: \"**/*.json, **/*.md\" # Optional: exclude patterns separated by commas\n```\n\n4. Replace `your-username` with your GitHub username or organization name where the AI Code Reviewer repository is\n   located.\n\n5. Customize the `exclude` input if you want to ignore certain file patterns from being reviewed.\n\n6. Commit the changes to your repository, and AI Code Reviewer will start working on your future pull requests.\n\n## How It Works\n\nThe AI Code Reviewer GitHub Action retrieves the pull request diff, filters out excluded files, and sends code chunks to\nthe OpenAI API. It then generates review comments based on the AI's response and adds them to the pull request.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues or pull requests to improve the AI Code Reviewer GitHub\nAction.\n\nLet the maintainer generate the final package (`yarn build` \u0026 `yarn package`).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvillesau%2Fai-codereviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvillesau%2Fai-codereviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvillesau%2Fai-codereviewer/lists"}