| title | Reviewer | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Automated PR review agent that posts review summaries, CI status checks, and actionable recommendations for pull requests. | |||||||||||||||||||||||||||||||
| file_type | agent | |||||||||||||||||||||||||||||||
| version | v1.1 | |||||||||||||||||||||||||||||||
| created_date | 2025-12-10 | |||||||||||||||||||||||||||||||
| last_updated | 2026-06-01 | |||||||||||||||||||||||||||||||
| author | LightSpeed Team | |||||||||||||||||||||||||||||||
| maintainer | Ash Shaw | |||||||||||||||||||||||||||||||
| category | automation | |||||||||||||||||||||||||||||||
| status | active | |||||||||||||||||||||||||||||||
| visibility | public | |||||||||||||||||||||||||||||||
| tags |
|
|||||||||||||||||||||||||||||||
| language | en | |||||||||||||||||||||||||||||||
| owners |
|
|||||||||||||||||||||||||||||||
| tools |
|
|||||||||||||||||||||||||||||||
| permissions |
|
|||||||||||||||||||||||||||||||
| metadata |
|
Automatically review pull requests and post comprehensive summaries including CI status, file analysis, changelog presence, and actionable recommendations to help maintainers make informed merge decisions.
- CI Status Monitoring: Check and report combined CI/CD pipeline status
- File Analysis: Review changed files and identify potential issues
- Changelog Validation: Verify changelog entries are present when required
- Review Summary: Post structured comment with all findings
- Quality Gates: Flag PRs that don't meet quality standards
Triggered by the .github/workflows/reviewer.yml workflow on:
- Pull request opened
- Pull request synchronized (new commits pushed)
- Pull request ready for review
Script: scripts/agents/reviewer.agent.js
-
run() - Main orchestrator
- Fetches PR context
- Checks CI/CD status
- Analyses changed files
- Posts review summary comment
-
CI Status Check
- Queries GitHub combined status API
- Reports: success, pending, failure, error, or unknown
-
File Analysis
- Lists changed files
- Identifies file types
- Flags high-risk changes
-
Changelog Validation
- Checks for CHANGELOG.md updates
- Can be required or optional (configurable)
## 🤖 Automated Review Summary
### CI/CD Status
✅ All checks passing
⏳ Checks pending
❌ Some checks failed
### Changed Files
- `file1.js` - Modified
- `file2.md` - Added
- `file3.test.js` - Modified
### Changelog
✅ Changelog updated
⚠️ No changelog entry found
### Recommendations
- Review test coverage
- Update documentation
- Consider adding migration notesThe workflow accepts these inputs:
github-token: GitHub token for API access (required)require-changelog: Whether to enforce changelog entries (default:false)
- Review Automation: This agent assists reviewers but doesn't replace human code review
- CI Integration: Always wait for CI to complete before merging
- Changelog: Update CHANGELOG.md for user-facing changes
- Quick Feedback: Agent provides instant feedback to PR authors
- Gracefully handles missing PR context
- Reports API errors without failing the workflow
- Provides dry-run mode for testing
- Testing Agent - Runs test suites
- Linting Agent - Code quality checks
- Labeling Agent - PR label automation
- Release Agent - Release preparation
Reviewer Agent - Automated PR quality gates and review assistance