Skip to content

First-class diff API for review documents #103

Description

@taras

Problem

Review documents work with diffs through ad-hoc parsing. ReviewPR.md
carries // TODO: we need an easier way to work with diffs here over
const changedFilePaths = pr.files.map((file) => file.path); — and earlier
iterations parsed raw git diff --name-status text (rename forms included)
inside components.

Proposal

A first-class diff API in @executablemd/code-review-agent (or the runtime):
changed paths, per-file hunks/added lines, rename handling — so documents and
components consume typed values instead of re-parsing diff text. Remove the
TODOs in ReviewPR.md / ReviewPR.local.md when done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions