How snakeeye-sudo/codeflow-ai-reviewer works
CodeFlow AI Reviewer is a Flask service that accepts GitHub pull-request webhooks or manual review requests, obtains changed code, sends it to OpenAI for analysis, and returns or posts review feedback. The main runtime is concentrated in app.py: webhook validation, GitHub retrieval, language selection, model interaction, and comment publication are responsibilities within that file. The README describes broader quality checks and CI usage, but the supplied tree and excerpts do not show separate implementation modules or a learning subsystem, so those are not represented as independent components.
Main entry points: app.py Webhook handler
Components 14
Request handling
- Webhook handler
app.py - Manual review route
app.py - Status endpoint
app.py - Signature verification
app.py
Review processing
- Changed-file selection
app.py - Language selection
app.py - GPT code analysis
app.py - PR comment formatting
app.py
External services
- GitHub API access
app.py - OpenAI API
- GitHub pull request
Other components
- GitHub PR event
- Manual review caller
- Review response
Connections 14
- GitHub PR event → Webhook handler: sends event
README.md - Webhook handler → Signature verification: checks signature
app.py - Webhook handler → GitHub API access: fetches PR
app.py - GitHub API access → GitHub pull request: reads changes
app.py - Webhook handler → Changed-file selection: selects changed files
app.py - Webhook handler → Language selection: maps extensions
app.py - Webhook handler → GPT code analysis: submits patches
app.py - Manual review route → GPT code analysis: submits code
app.py - GPT code analysis → OpenAI API: requests analysis
app.py - OpenAI API → GPT code analysis: returns feedback
app.py - Webhook handler → PR comment formatting: publishes reviews
app.py - PR comment formatting → GitHub pull request: posts comment
app.py - Manual review route → Review response: returns review
app.py - Manual review caller → Manual review route: requests review
README.md