feat(pull-requests): link multiple pull requests to threads (#10839)

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-09-09 15:50:58 -07:00
1 parent 383cc40f4d
commit afb84898be
172 files changed
+12063 -914

No files matched your search

@@ -47,6 +47,7 @@ const CAPABILITIES: PullRequestCapabilities = {
},
reviewers: { request: true, listCandidates: true },
edit: { changeRequest: true, comment: true },
stacks: true,
labels: true,
};
@@ -292,7 +293,20 @@ export const make = Effect.gen(function* () {
.pipe(Effect.mapError(fail("listChangeRequestStats"))),
getChangeRequestSummary: (input) =>
cli.getPullRequestSummary(input).pipe(Effect.mapError(fail("getChangeRequestSummary"))),
cli.getPullRequestSummary(input).pipe(
// `gh pr view` names the author without an avatar; the login-shaped URL every user
// has stands in, without the second request the listing spends on it.
Effect.map((summary) => ({
...summary,
...(summary.author === undefined
? {}
: { author: withAvatar(summary.author, new Map(), input.host) }),
})),
Effect.mapError(fail("getChangeRequestSummary")),
),
getChangeRequestStack: (input) =>
cli.getPullRequestStack(input).pipe(Effect.mapError(fail("getChangeRequestStack"))),
getChangeRequest: (input) =>
Effect.all(