Problem
- Separation of concerns: Single workflows handling multiple responsibilities
- Monolithic workflows with duplication: Authentication, permissions, and error handling repeated across multiple workflows
- Extensibility: Adding new AI commands requires creating entirely new workflows with trigger handling
- Maintainability: Hard to isolate failures in large, complex workflows
Solution
Using dispatcher pattern to:
- Listen to multiple GitHub events (PR reviews, comments, issues)
- Analyze trigger conditions and comment content
- Provide consistent authentication and permission handling
- Route requests to appropriate specialized workflows using workflow_call
Problem
Solution
Using dispatcher pattern to: