feat(github): pull request tool window, timeline and review flow (#477)

Replaces the Pull Requests tool window with a full review workflow on top of gh's authentication.

- List with search, quick filters and paging; a tab per pull request and a New Pull Request tab.
- Details: commit picker, changes tree with viewed state, CI and reviewer status, merge, close and reopen.
- Timeline editor: comments, review threads, reactions and suggested changes.
- Review in the diff viewer and, for the checked-out branch, in the editor (review mode).
- New generic vcs extension points: registerDiffViewerProvider, lineInlays, reviewGutter, branch widget extensions; new vcs_merge_base and gh_api commands.
- CSP: img-src allows https://avatars.githubusercontent.com for avatars.

Fixed while testing against a real repository: remotes behind an SSH host alias, mergeability stuck on UNKNOWN, Apply Locally staying disabled after a checkout, relative links navigating the app's page, and review inlays wider than the pane.

Co-authored-by: imacross <30753807+imacross@users.noreply.github.com>
This commit is contained in:
imacross
2026-10-31 07:50:43 +08:00
committed by GitHub
parent 696377acc2
commit 059fd8a69b
192 changed files with 23668 additions and 2076 deletions
@@ -0,0 +1,34 @@
/* The editor inlay panel (`CodeReviewCommentUIUtil.createEditorInlayPanel`): 10px arc, the
tear line colour as border, the editor background; content at most 42em wide, and never
wider than the pane (the scroller is its size container; 96px: gutters and margins). */
.inlay {
box-sizing: border-box;
max-width: min(calc(42em + 60px), calc(100cqw - 96px));
margin: 4px 12px 4px 4px;
padding: 6px 0;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-editor);
font-family: var(--font-ui);
font-size: var(--fs-ui);
white-space: normal;
cursor: auto;
}
.newComment {
padding: 4px 10px;
}
.sep {
width: 1px;
height: 14px;
margin: 0 4px;
background: var(--border-strong);
}
.page {
display: flex;
flex-direction: column;
gap: 8px;
padding: 4px 0;
}