fix: draft PR body missing issue context at creation time#954
Conversation
Issue Analyzer: Technical Analysis for #953Root Cause AnalysisThe data-fetching pipeline is working correctly. The Root cause: Issue #948 has an empty body ( The empty string const issueBody = issueData?.body ? `\n\n## ${issueData.title}\n\n${issueData.body}` : ''...correctly evaluates to This is working as designed, but the design itself is the problem — the fallback for empty-body issues produces a useless PR description. Data Flow TraceQuestions & Assumed Answers
Affected Files
Technical Findings
|
Implementation Plan for #953: Draft PR body should include issue contextSummaryThe draft PR body generated during Key Design Decision: Template-based, no AI generation at draft timeThe
Questions & Assumed Answers
Affected Files
Detailed Changes1.
|
Implementation CompleteSummaryReplaced the generic draft PR body generation with a structured format that includes issue context. When the issue body is non-empty, it's wrapped in a collapsible Changes Made
Validation Results
Detailed Changes by File (click to expand)src/lib/LoomManager.tsChanges: Replaced draft PR body generation (lines 292-310)
src/lib/LoomManager.test.tsChanges: Added and enhanced draft PR body tests
|
Replace generic draft PR body with structured format that includes issue title as heading and issue body in collapsible details section. Handle empty issue bodies gracefully with title-only fallback.
a0e3407 to
b735966
Compare
iloom Session SummaryKey Themes:
Session Details (click to expand)Key Insights
Decisions Made
Challenges Resolved
Lessons Learned
Generated with 🤖❤️ by iloom.ai |
Fixes #953
Draft PR body is generic/useless — should include issue context
Problem
When creating a draft PR in
draft-prmode duringil start, the PR body is generic and unhelpful:The code at
src/lib/LoomManager.ts:292-294does attempt to include the issue body:But there are two issues:
Fixes #N).Investigation needed
fetchIssueData()is returning the body correctly at draft PR creation timeLocation
src/lib/LoomManager.tslines 286-297 — draft PR body generationsrc/lib/LoomManager.tsline 92 —fetchIssueData()callsrc/lib/LoomManager.tslines 618-637 —fetchIssueData()implementationThis PR was created automatically by iloom.