Add optional comment retrieval to iw issue command #199
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#199
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
iw issuecurrently only retrieves the issue description (body). Comments are not fetched from any tracker, which means important context added in discussion threads is invisible.Scope
This affects all supported trackers:
gh issue view --json commentsreturns{author, body, createdAt}commentson issuesglab/ REST API supports issue notes (comments)Proposed Behavior
iw issue ISSUE-ID— current behavior, description only (no change)iw issue ISSUE-ID --comments— also fetch and display commentsChanges Needed
comments: Option[List[Comment]](or similar) to theIssuemodelIssueFormatterto render comments when present--commentsflag through theissuecommandIntake: fixed by
225fd289IW-610 (PR #728, merged to
mainas225fd289) does all four changes that this issue asks for:core/model/IssueComment.scalaadds the comment type (author, time, body, oldest first).fcc8a735, #694) changesGitHubClient,GitLabClient,LinearClient,YouTrackClientandForgejoClientso that they fetch comments.4c364678, #695) makesIssueFormattershow the comments.core/commands/Issue.scalaadds the--commentsswitch (example:iw issue TEST-42 --comments). Without the switch,iw issueshows only the description.If this is not correct, reopen the issue.