Skip to content

[Done] Split runAction into explicit initialize/execute/finalize phases #616

Description

@github-actions

Refactor src/github/runAction.ts to separate orchestration into clear phase-specific functions (for example: initializeAction, executeAction, finalizeAction). Today the function mixes concerns such as adding reactions, title updates, progress comments, prompt preparation, Codex execution, result routing, and error handling. Extracting these phases should reduce cognitive load, make error paths more predictable, and improve testability. Include a small shared context object passed between phases so data flow is explicit. Preserve current behavior while simplifying control flow and reducing nested branching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions