Skip to content

[Proposal: Feature] Use a PR comment to track PR parent/children #101

Description

@shoffing

Problem

When reviewing a tree of PRs created with jj-spr, it can be hard to know where the tree starts, where the “leaf node” PRs are, and how everything connects in-between.

Proposal

When jj spr diff is used to create a new PR (or updates an existing one), it also creates/edits a comment at the top of that PR where it will render the immediate parent and children PRs of that PR for easy reference by reviewers.

Take an example - imagine a tree of PRs that looks like this:
Image

The comment for PR #4 ("Consume FooService with BarService") on GitHub would be as follows:

**Parent PR:**
- #3

**Children PRs:**
- #5
- #6
Image

These comments would need to be kept up-to-date by jj spr diff as PRs are rebased and moved around.

Note that this only shows immediate ancestor / descendant(s). While it would be possible to use indented bullets to show the full tree, I think that would probably be overkill?

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