-
Notifications
You must be signed in to change notification settings - Fork 0
feat: #46: Add GitHub Actions workflow for automated code review #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🤖 AI Code Review Pull Request Context: Review Results: AI Code Review ResultsWarning: Input is not a terminal (fd=0).
This review was generated automatically using StreetRace AI. Please use your judgment when addressing the feedback. |
2 similar comments
|
🤖 AI Code Review Pull Request Context: Review Results: AI Code Review ResultsWarning: Input is not a terminal (fd=0).
This review was generated automatically using StreetRace AI. Please use your judgment when addressing the feedback. |
|
🤖 AI Code Review Pull Request Context: Review Results: AI Code Review ResultsWarning: Input is not a terminal (fd=0).
This review was generated automatically using StreetRace AI. Please use your judgment when addressing the feedback. |
|
🤖 AI Code Review Pull Request Context: Review Results: SummaryThis review covers the introduction of new GitHub Actions workflows for automated AI code review using the StreetRace🚗💨 architecture. The changes include multiple scripts and configurations that facilitate automated code review upon pull request events. The overall implementation provides a structured way to extract diff information, run AI models for evaluation, and post results as comments on pull requests. Critical Issues 🚨
High Priority Issues
|
…e review This comprehensive implementation adds automated AI code review capabilities to GitHub Actions with proper error handling and debugging support. Key Features: - Complete GitHub Actions workflow with AI code review integration - Support for multiple AI providers (OpenAI, Anthropic, Google) - Robust timeout and error handling with verbose debug logging - Node.js and MCP tools setup for proper StreetRace functionality - Automated review report generation and PR comment posting - Local testing scripts for workflow validation Technical Improvements: - Added timeout detection by parsing StreetRace output for timeout errors - Configured 300-second HTTP timeouts for GitHub Actions environment - Installed @modelcontextprotocol/server-filesystem for MCP support - Enhanced error handling that properly fails on timeout conditions - Comprehensive logging and artifact archiving for debugging Files Added: - .github/workflows/code-review.yml - Main workflow definition - .github/workflows/scripts/* - Workflow execution scripts - templates/github-code-review.md - Review instructions template - scripts/test-*.sh - Local testing utilities - docs/GITHUB_ACTIONS_SETUP.md - Setup documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
d463423 to
58e3369
Compare
|
🤖 AI Code Review Pull Request Context: Review Results: SummaryThis pull request introduces an automated code review workflow using AI via GitHub Actions. It includes the setup for a new CI process that employs models from various AI providers and integrates with GitHub to analyze code diffs and provide structured feedback on PRs. Critical Issues 🚨
High Priority Issues
|
|
Closing in favor of clean PR with squashed commits and comprehensive implementation. |
Summary
Implements automated AI-powered code review for pull requests using StreetRace as requested in issue streetrace-ai#46.
Features
Implementation
Core Components
.github/workflows/code-review.yml- Main GitHub Actions workflow.github/workflows/scripts/- Supporting scripts for diff extraction and comment posting.github/templates/code-review-prompt.md- Structured prompt templatedocs/GITHUB_ACTIONS_SETUP.md- Complete setup documentationWorkflow Process
Setup
Configure Secrets: Add at least one AI provider API key
ANTHROPIC_API_KEY(recommended)OPENAI_API_KEYGOOGLE_AI_API_KEYEnable Workflow: The workflow file is included and ready to use
Customize: Modify templates and settings as needed
Benefits
Testing
The implementation has been thoroughly tested and cleaned up:
See
docs/GITHUB_ACTIONS_SETUP.mdfor detailed setup instructions.