Skip to content

refactor(routes): extract shared status-label mutation helper #508

Description

@joryirving

Problem: src/app/api/issues/status/route.ts:6 and src/app/api/issues/move/route.ts:7 each define an identical local isStatusLabel and duplicate auth/parse/validation for status/* label mutation.

Fix: extract a shared isStatusLabel + mutateStatusLabels helper (into @/lib/github or a small module). Effort: Low.


Part of #498 (dispatch audit).

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2Normal priority.status/readyReady for Dispatch worker pickup.type/choreRoutine tasks and maintenance

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions