How tmokmss/bedrock-pr-reviewer works
Main Components
a) External Services Layer:
• GitHub (Pull Request System)
• Amazon Bedrock (Claude AI Models)
• AWS IAM (Authentication)
b) Core Application Components:
• GitHub Action Runner
• PR Review System
• Authentication Handler
• Comment Management System
• Tokenizer Service
Trigger Layer
• GitHub Events (pull_request, pull_request_review_comment)
• Concurrency control mechanism
Authentication Layer
• AWS OIDC Authentication
• GitHub Token Authentication
Core Processing Layer
• Main Review Logic
• File Processing
• Comment Management
• Prompt Management
AI Integration Layer
• Bedrock API Communication
• Model Selection Logic ("light" vs "heavy" models)
Use these visual elements:
• Hexagons for external services
Component Relationships
Key interactions:
GitHub Events → GitHub Action Runner → Authentication Handler
• ↓
• PR Review System ←→ Tokenizer Service
• ↓
• Bedrock API Client
• ↓
• Amazon Bedrock Service
Important Details
a) File Processing Flow:
• How the system handles different file types
• Diff processing mechanism
• Incremental review process
b) Comment Management:
• Flow of review comments
• Conversation capability with the bot
• Comment threading mechanism
c) Configuration Elements:
• How environment variables are handled
• Where custom prompts are processed
• Role of action.yml in the system