await reviewPullRequest(github, { style: 'strict' })
/** Every Pull Request gets a rigorous, context-aware code review within 60 seconds. Stop waiting for teammates, catch bugs earlier, and enforce coding standards automatically. */
βοΈ Architecture & Data Flow
π Example Configuration Override
// You can deeply customize the LLM's reviewing persona in config.yaml
github_reviewer:
# The strictness level of the AI
strictness: high
# Inject custom team guidelines
custom_prompt: |
- You are a senior engineer at Stripe.
- We use camelCase for variables.
- Ban the use of 'any' in TypeScript.
- All API endpoints must have rate limits.
# Merge gatekeeping behavior
block_on:
- critical_security
- logic_errors
- performance_degradation
# Model routing for this specific task
model_override:
provider: anthropic
model: claude-3-5-sonnet-latestπ Real-World ROI
π¬ Example AI PR Comment
Security Review (OWASP Top 10)
The user input req.body.username is concatenated directly into the raw SQL string. This makes the application vulnerable to SQL Injection attacks. Please use parameterized queries or an ORM like Prisma/TypeORM instead.
Code Quality
The new fetchMetrics() async call is missing a try/catch block. If the API fails, it will cause an Unhandled Promise Rejection and crash the component tree.
Consider extracting the date manipulation logic into a dedicated helper function to improve testability. Currently, it is tightly coupled with the formatting logic.