Skip to content

[Done] Centralize GitHub event shape branching into shared typed helpers #617

Description

@github-actions

Introduce reusable event-discrimination helpers in src/github/types.ts (for example, helpers that normalize access to issue/PR metadata and comment targets), then replace repeated checks like 'issue' in ... and 'pull_request' in ... across src/github/comments.ts, src/github/progress.ts, src/github/reactions.ts, and src/github/runAction.ts. This should remove duplicated branching logic, improve type safety, and make behavior for issue vs PR events consistent. Add focused tests (or update existing ones) to confirm equivalent behavior for both event types.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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