Skip to content

GitHub plugin: show the author in the issue/PR list, not just the detail view #2030

Description

@ryan-lo-parloa

The workflow

Triaging a repo's open pull requests in the GitHub panel's Pull Requests tab. The first thing I want per row is who opened it, so I can separate my own PRs from teammates' and from bot PRs before deciding which to open. Today I have to click into each PR to find that out, then go back.

What happens today

The list row (ItemRow) renders number, title, labels, thread pills, assignee, status, updated time, and actions. Author is not among them:

bb/plugins/github/app.tsx

Lines 724 to 780 in c7c6642

function ItemRow({
item,
links,
onOpen,
}: {
item: Item;
links: ThreadLink[] | undefined;
onOpen: () => void;
}) {
const { spawn, spawningKey } = useSpawn();
const busy = spawningKey === `${item.repo}#${item.number}`;
return (
<div
className="grid cursor-pointer grid-cols-1 gap-y-2 px-3 py-3 hover:bg-accent/50 @[48rem]:flex @[48rem]:items-center @[48rem]:gap-3 @[48rem]:py-2"
onClick={onOpen}
>
<span className="flex min-w-0 flex-col items-start gap-1.5 @[48rem]:order-2 @[48rem]:flex-1 @[48rem]:flex-row @[48rem]:items-center @[48rem]:gap-2">
<span className="min-w-0 flex-1 line-clamp-3 text-sm font-medium leading-snug text-foreground @[48rem]:line-clamp-1 @[48rem]:leading-normal">
{item.title}
</span>
<LabelChips labels={item.labels} className="hidden shrink-0 @[60rem]:flex" />
<ThreadPills links={links} />
</span>
<span className="flex min-w-0 items-center gap-2 @[48rem]:contents">
<span className={`${COL.id} font-mono text-xs text-muted-foreground @[48rem]:order-1`}>
#{item.number}
</span>
<span
className={`${COL.assignee} ${item.assignees.length === 0 ? "hidden @[48rem]:flex" : "flex"} text-xs text-muted-foreground @[48rem]:order-3`}
>
<AssigneeCell assignees={item.assignees} />
</span>
<span className={`${COL.status} @[48rem]:order-4`}>
<StatusCell item={item} />
</span>
<span className={`${COL.updated} text-xs text-muted-foreground @[48rem]:order-5`}>
{relativeTime(item.updatedAt)}
</span>
<span className={`${COL.actions} @[48rem]:order-6`}>
<Button
size="sm"
variant="outline"
className="h-7"
disabled={spawningKey !== null}
onClick={(event) => {
event.stopPropagation();
spawn(item.kind === "issue" ? "startWork" : "startReview", item.repo, item.number);
}}
>
{busy ? "…" : item.kind === "issue" ? "Start" : "Review"}
</Button>
<RowMenu item={item} />
</span>
</span>
</div>
);
}

The data is already fetched, stored, and served — this is display-only. author is in the gh field list, the items table schema, and the row mapper in server.ts:

const fields = "number,title,state,author,labels,assignees,url,body,updatedAt";

author TEXT NOT NULL,

On this install every cached row has a non-empty author:

$ sqlite3 ~/.bb/plugins/github/data.db "select kind,count(*),count(nullif(author,'')) from items group by kind;"
issue|23|23
pr|116|116

It is already rendered in the PR detail view, just not in the list:

bb/plugins/github/app.tsx

Lines 1622 to 1623 in c7c6642

<Avatar login={pull.author} />
<span className="font-medium text-foreground">{pull.author}</span>

What you would expect

An Author column between ID and Assignee, styled like the existing AssigneeCell (avatar plus login, truncated, title on hover), hidden below the @[48rem] breakpoint the way Updated already is. It applies to both Issues and Pull Requests since ItemRow is shared. No server, schema, or wire change.

Prototype diff against c7c6642 (28 insertions, 8 deletions, one file). turbo run typecheck test --filter=bb-plugin-github passes: 21 tests across 5 files. Happy to push this to a fork and link it properly if the shape looks right.

--- a/plugins/github/app.tsx
+++ b/plugins/github/app.tsx
@@ const COL = {
   id: "shrink-0 @[48rem]:w-12",
+  author: "hidden shrink-0 @[48rem]:flex @[48rem]:w-28",
   assignee: "shrink-0 @[48rem]:w-20",

+function AuthorCell({ author }: { author: string }) {
+  if (author.length === 0) {
+    return <span className="text-muted-foreground/50">—</span>;
+  }
+  return (
+    <span className="flex min-w-0 items-center gap-1.5" title={author}>
+      <Avatar login={author} size="size-4" />
+      <span className="truncate">{author}</span>
+    </span>
+  );
+}
+
 function AssigneeCell({ assignees }: { assignees: string[] }) {

@@ ItemRow
+        <span className={`${COL.author} text-xs text-muted-foreground @[48rem]:order-3`}>
+          <AuthorCell author={item.author} />
+        </span>
         <span className={`${COL.assignee} ... @[48rem]:order-4`}>   // was order-3

@@ ItemsTable header
+        <span className={COL.author}>Author</span>
         <span className={COL.assignee}>Assignee</span>

The remaining hunks are the matching TableSkeleton cell and a +1 shift of the @[48rem]:order-N classes on the columns after Author.

Context and alternatives

Workaround today is querying ~/.bb/plugins/github/data.db directly, or opening each PR.

bb github prs does not print the author either. Given the AGENTS.md rule that every end-user feature ships its CLI surface in the same change, that column probably belongs in this change too — happy to include it, just say which way you want it.

Searched open and closed issues for the same request (gh issue list --repo get-bb/bb --search "github plugin" --state all, plus searches on "author"); nothing covers this. Closest neighbours are #1543 and #1920, both about PR state and review flow rather than list columns.

Environment: bb 0.38.0 (desktop app), macOS 26.5.1, github plugin 0.2.1 (builtin).

AGENT GENERATED: by Claude Opus 5

Activity

  1. added
    github
    ui
    on Aug 20, 2026
  2. sankalpaacharya commented on Nov 7, 2026

    @sankalpaacharya

    I have a prototype for this on my fork. It adds the author to each row, and also covers #2542 (the repository on each row) and the draft, checks, and conflict data that #5867 asks for.

    Branch: https://github.com/sankalpaacharya/bb/tree/github-plugin-pr-list-redesign. It changes 7 files, all under plugins/github/.

    • Each row shows the author and repository on a second line, with labels when there is room.
    • Pull request rows show draft, merged, or closed state, a checks icon, a marker for merge conflicts, and +additions −deletions.
    • Your own pull requests and the issues assigned to you are listed first.
    • Rows use the shared ResourceRow and ResourceOverflowMenu, so hover actions and menus match other bb lists. The thread GitHub PR picker uses the same rows.
    • bb github prs --json rows gain a pull object with the new fields.

    Screenshots from the public theexperiencecompany/gaia repository:

    Screen Before After
    Pull requests Before: pull requests After: pull requests
    Issues Before: issues After: issues

    Could a maintainer sign off on this direction before I open a pull request? It would close #2030 and #2542. If the pull request part should land as part of #5867 instead, I'm happy to coordinate with @alexandre-vl.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    githubui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions