Include issue comments during /issue-init (#45)#46
Merged
Conversation
- Fetch comments alongside the issue body via `gh issue view --json title,body,url,number,comments` and triage them into a new optional "Comments (curated summary)" section in issue<N>_original.md (three buckets: Additional tasks, Clarifications / constraints, Superseded / retracted). The issue body itself stays byte-for-byte. - New `issueflow-issue-comments` skill describes the triage rules (chronological precedence, noise filtering, maintainer-authority tie-breaker, output contract, edge cases) and is delegated to from both the /issue-init command and the issueflow-issue-init skill. - Register the new skill in TEMPLATE_MANIFEST; bump the manifest-count test and add focused tests that check the command fetches comments, the init skill delegates, and the new skill documents the triage rules. - Append an [Unreleased] entry to HISTORY.md. Made-with: Cursor
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.
Closes #45.
Summary
/issue-initnow triages the GitHub issue comment thread into a curated section ofissue<N>_original.md, so clarifications, extra tasks, and walked-back decisions posted in comments are visible to downstream commands. The original issue body stays byte-for-byte unchanged./issue-initcommand (src/issue_flow/templates/commands/issue-init.md.j2): fetch addscomments(gh issue view --json title,body,url,number,comments); new step 2a triages them via the new skill; file-content format grows an optional## Comments (curated summary)section with three buckets (Additional tasks, Clarifications / constraints, Superseded / retracted); output now reports triage counts.issueflow-issue-initskill: mirrors the command — fetch shape, triage step, curated block in the Write section, triage counts in the Report step.issueflow-issue-commentsskill (src/issue_flow/templates/skills/issueflow_issue_comments/SKILL.md.j2): chronological precedence (later comments win), the three buckets, noise filtering (bots / LGTMs / emoji-only), paraphrase rules, disagreement handling, maintainer-authority tie-breaker, exact output contract, and edge cases (zero comments, all-noise, multi-author disagreement, external links, large code blocks).TEMPLATE_MANIFEST; manifest count bumped 20 → 21; three new focused tests cover the command's comment-fetching + delegation, the init skill's delegation, and the new skill's triage rules.Section is omitted entirely when there are no comments or all comments are noise, so existing behavior for comment-less issues is unchanged.
Test plan
uv run pytest -q— 71 passed.uv run issue-flow updatein a scratch project and confirm.cursor/skills/issueflow-issue-comments/SKILL.mdis emitted alongside the updated.cursor/commands/issue-init.mdand.cursor/skills/issueflow-issue-init/SKILL.md./issue-initagainst an issue that has real comments and confirm the curated section contains sensibly bucketed bullets.Made with Cursor