Description
Enable developers to import comments and feedback from an existing GitHub Pull Request into a new Jules session. This allows Jules to act as an automated 'Review Fixer'.
User Story
"As a developer, I want to select a Pull Request and have Jules automatically process the reviewer's comments and suggest/implement fixes, so I don't have to manually translate feedback into prompts."
Acceptance Criteria
🏗️ Technical Implementation
- GitHub API: Use the GitHub 'Pull Request Comments' API to fetch data.
- UI Integration:
- Add a 'Pull Request' toggle/tab in .
- Component to select specific comments to import (multi-select).
- Prompt Engineering: Develop a specialized template for 'Review Fix' sessions.
Priority
P2: Nice to Have (Workflow)
Related
Complements #49 (GitHub Issue Integration) and #24 (Post-Session PR Review Workflow).
📐 Technical Implementation
- PR Service: Extend lib/github.ts to fetch PR comments (review comments and general comments).
- Context Injection:
- Create a utility to format multiple PR comments into a single instruction block.
- Include file paths and line numbers from the comments for better agent context.
- UI Integration:
- Add 'Import PR' to NewSessionDialog .
- List active PRs for the selected repo.
- On selection, fetch and aggregate comments.
✅ Definition of Done
Description
Enable developers to import comments and feedback from an existing GitHub Pull Request into a new Jules session. This allows Jules to act as an automated 'Review Fixer'.
User Story
"As a developer, I want to select a Pull Request and have Jules automatically process the reviewer's comments and suggest/implement fixes, so I don't have to manually translate feedback into prompts."
Acceptance Criteria
🏗️ Technical Implementation
Priority
P2: Nice to Have (Workflow)
Related
Complements #49 (GitHub Issue Integration) and #24 (Post-Session PR Review Workflow).
📐 Technical Implementation
✅ Definition of Done