-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
Summary
Migrate commands that have IssueTracker access via dependency injection to use formatIssueId instead of hardcoded # prefixes.
Context
Part of Epic #595. These commands already have an IssueTracker instance available, so they can call this.issueTracker.formatIssueId(id) directly.
Files to Modify
src/commands/start.ts— Replace#${parsed.number}withthis.issueTracker.formatIssueId(parsed.number)(~4 sites)src/commands/finish.ts— Same pattern (~3 sites, plus sites usingissuePrefixfrom MCP provider)src/commands/enhance.ts— Same (~2 sites)src/lib/IssueEnhancementService.ts— Same (~2 sites, has injectedIssueTracker)src/lib/LoomLauncher.ts— ReplaceIssue #${identifier}formatting (~2 sites, needs provider access added or use static utility)
Acceptance Criteria
- All hardcoded
#prefixes in the listed files are replaced withformatIssueIdcalls - Test files updated to expect provider-formatted output
- For GitHub-provider tests, expected output remains unchanged (still
#123) - At least one Jira or Linear test case added where practical
-
pnpm buildpasses -
pnpm testpasses
Scope Boundaries
- Do NOT change PR references (
PR #X) — PRs are GitHub-only - Do NOT change debug-level messages
- Do NOT change files covered by Issues 3, 4, or 5
Dependencies
- Blocked by: Add
formatIssueIdtoIssueTrackerinterface andIssueTrackerFactory#596 (AddformatIssueIdinterface and implementations)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done