refactor: extract shared utilities for URL building, prompts, and name resolution#18
Merged
lollipop-onl merged 1 commit intomainfrom Feb 7, 2026
Merged
Conversation
…e resolution - Add resolveByName<T>() generic factory in resolve.ts to eliminate duplicated name-to-ID lookup patterns (used by resolvePriorityId, resolveResolutionId) - Add url.ts with centralized Backlog web URL builders (issueUrl, projectUrl, pullRequestUrl, repositoryUrl, wikiUrl, dashboardUrl) replacing scattered template literals across 8 command files - Add prompt.ts with promptRequired() helper replacing duplicated prompt-then-validate-then-exit pattern across 15+ command files - Apply new utilities to all affected command files (browse, issue/*, pr/*, project/*, wiki/*, repo/*, category/*, team/*, milestone/*, webhook/*, status-type/*, issue-type/*) - Add comprehensive tests for all new utilities (url.test.ts, prompt.test.ts, resolveByName tests in resolve.test.ts) - Update claude.md to document new utility modules, URL builder patterns, and promptRequired usage https://claude.ai/code/session_018Xzap56B6tbcxdSx2DWuq1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
duplicated name-to-ID lookup patterns (used by resolvePriorityId,
resolveResolutionId)
projectUrl, pullRequestUrl, repositoryUrl, wikiUrl, dashboardUrl)
replacing scattered template literals across 8 command files
prompt-then-validate-then-exit pattern across 15+ command files
pr/, project/, wiki/, repo/, category/, team/, milestone/,
webhook/, status-type/, issue-type/*)
prompt.test.ts, resolveByName tests in resolve.test.ts)
patterns, and promptRequired usage
https://claude.ai/code/session_018Xzap56B6tbcxdSx2DWuq1