Skip to content

Use Dispatcher Pattern in Workflows #215

@jerop

Description

@jerop

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

Metadata

Metadata

Assignees

Labels

kind/enhancementNew feature or requestpriority/p1Important and should be addressed in the near term

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions