Skip to content

Fix cleanup.ts provider-awareness for issue ID formatting #600

@NoahCardoza

Description

@NoahCardoza

Summary

cleanup.ts hardcodes GitHubService and references GitHub issue/PR #X. Fix to use IssueTrackerFactory and format IDs correctly.

Context

Part of Epic #595. The cleanup command currently assumes GitHub is the issue tracker, which produces incorrect output for Jira and Linear users.

Files to Modify

  • src/commands/cleanup.ts — Load settings, use IssueTrackerFactory.formatIssueId() (~4 sites). Also replace "GitHub issue/PR" text with generic "issue/PR".

Acceptance Criteria

  • cleanup.ts no longer hardcodes GitHubService for issue ID formatting
  • Uses IssueTrackerFactory.formatIssueId() for all user-facing issue references
  • "GitHub issue/PR" text replaced with generic "issue/PR" where appropriate
  • Cleanup test expectations updated
  • pnpm build passes
  • pnpm test passes

Scope Boundaries

  • Do NOT change PR-specific references if they're GitHub-only operations

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions