Skip to content

SESSION-011: Import Pull Request Comments (Review & Fix Workflow) #53

@sbhavani

Description

@sbhavani

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

  • PR Selection: Retrieve open Pull Requests for the selected repository in the 'New Session' dialog.
  • Comment Extraction: Fetch 'open' or 'unresolved' comments from the PR.
  • Context Injection:
    • Automatically populate the Session Prompt with the PR description and selected comments.
    • Include file paths and line numbers referenced in comments.
  • Workflow Linking: Link the Jules session to the PR for easy navigation.

🏗️ Technical Implementation

  1. GitHub API: Use the GitHub 'Pull Request Comments' API to fetch data.
  2. UI Integration:
    • Add a 'Pull Request' toggle/tab in .
    • Component to select specific comments to import (multi-select).
  3. 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

  • User can select an existing Pull Request when creating a session.
  • Jules pre-fills the prompt with the feedback from PR reviewers.
  • The prompt includes file/line context for each specific piece of feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:builderAssigned to Builder (Feature Implementation)featureNew feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions