{"id":20849442,"url":"https://github.com/zeyu-chen/ai-code-review","last_synced_at":"2026-05-02T23:32:34.401Z","repository":{"id":262054727,"uuid":"886092344","full_name":"zeyu-chen/AI-Code-Review","owner":"zeyu-chen","description":"An automated code review system powered by OpenAI that integrates with Git and WeChat for notifications.","archived":false,"fork":false,"pushed_at":"2024-11-10T07:17:40.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T12:17:52.096Z","etag":null,"topics":["github-actions","java","openai","wechat"],"latest_commit_sha":null,"homepage":"","language":"Java","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/zeyu-chen.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":"2024-11-10T07:01:56.000Z","updated_at":"2024-11-10T07:18:50.000Z","dependencies_parsed_at":"2024-11-10T08:31:00.099Z","dependency_job_id":null,"html_url":"https://github.com/zeyu-chen/AI-Code-Review","commit_stats":null,"previous_names":["zeyu-chen/ai-code-review"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyu-chen%2FAI-Code-Review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyu-chen%2FAI-Code-Review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyu-chen%2FAI-Code-Review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyu-chen%2FAI-Code-Review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeyu-chen","download_url":"https://codeload.github.com/zeyu-chen/AI-Code-Review/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213982,"owners_count":20254902,"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":["github-actions","java","openai","wechat"],"created_at":"2024-11-18T03:05:08.538Z","updated_at":"2025-10-27T03:10:17.260Z","avatar_url":"https://github.com/zeyu-chen.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI Code Review\n\n[![Java](https://img.shields.io/badge/Java-11-ED8B00?logo=openjdk\u0026logoColor=white)](https://www.oracle.com/java/)\n[![Spring Boot](https://img.shields.io/badge/Spring_Boot-2.7.12-6DB33F?logo=spring-boot\u0026logoColor=white)](https://spring.io/projects/spring-boot)\n[![OpenAI API](https://img.shields.io/badge/OpenAI_API-v1-412991?logo=openai\u0026logoColor=white)](https://openai.com/)\n[![WeChat](https://img.shields.io/badge/WeChat-Integration-07C160?logo=wechat\u0026logoColor=white)](https://www.wechat.com/)\n[![GitHub Actions](https://img.shields.io/badge/GitHub_Actions-CI/CD-2088FF?logo=github-actions\u0026logoColor=white)](https://github.com/features/actions)\n\nAn automated code review system powered by OpenAI that integrates with Git and WeChat for notifications.\n\n## Features\n\n- 🤖 AI-Powered Code Review - Automated code analysis using OpenAI\n- 📊 Git Integration - Analyzes git diff and commits\n- 💬 WeChat Notifications - Instant review notifications via WeChat\n- 🔄 GitHub Actions - Automated workflow integration\n- 📝 Review Logging - Stores review history in a separate repository\n\n## Tech Stack\n\n- **Language:** Java 11\n- **Framework:** Spring Boot 2.7.12\n- **Build Tool:** Maven\n- **AI Integration:** OpenAI\n- **Version Control:** JGit\n- **Messaging:** WeChat Template Messages\n- **CI/CD:** GitHub Actions\n\n## Getting Started\n\n### Prerequisites\n\n- Java 11+\n- Maven\n- GitHub account\n- WeChat Official Account\n- OpenAI API key\n\n### Installation\n\n1. Clone the repository\n\n```bash\ngit clone git@github.com:Zeyu-Chen/AI-Podcast-App.git\ncd AI-Code-Review\n```\n\n2. Build with Maven\n\n```bash\nmvn clean install\n```\n\n### Environment Variables\n\nConfigure the following environment variables in your GitHub repository's Settings \u003e Secrets and Variables \u003e Actions:\n\n```bash\n# GitHub\nGITHUB_REVIEW_LOG_URI=       # Review log repository URI\nGITHUB_TOKEN=                # GitHub personal access token\nCOMMIT_PROJECT=              # Target project name\nCOMMIT_BRANCH=               # Target branch name\nCOMMIT_AUTHOR=               # Commit author\nCOMMIT_MESSAGE=              # Commit message\n\n# WeChat\nWECHAT_APPID=                # WeChat Official Account AppID\nWECHAT_SECRET=               # WeChat Official Account Secret\nWECHAT_TOUSER=               # WeChat user OpenID\nWECHAT_TEMPLATE_ID=          # Message template ID\n\n# OpenAI\nOPENAI_APIHOST=              # OpenAI API endpoint\nOPENAI_APIKEYSECRET=         # OpenAI API key\n```\n\n## Project Structure\n\n```\nopenai-code-review/\n├── openai-code-review-sdk/     # Core SDK module\n│   ├── domain/                 # Domain logic\n│   ├── infrastructure/         # External services\n│   └── types/                  # Utility classes\n├── openai-code-review-test/    # Test module\n└── .github/                    # GitHub Actions workflows\n```\n\n## Usage\n\nThe system can be used in two ways:\n\n1. As a GitHub Action:\n\n```yaml\nname: Code Review\non: [push, pull_request]\njobs:\n  review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Run Code Review\n        uses: ./\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n2. As a Java library:\n\n```java\nOpenAICodeReview review = new OpenAICodeReview();\nreview.exec();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeyu-chen%2Fai-code-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeyu-chen%2Fai-code-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeyu-chen%2Fai-code-review/lists"}