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,97 @@
/* The timeline editor (GHPRFileEditorComponentFactory): one scrolling column. */
.scroll {
height: 100%;
overflow: auto;
outline: none;
background: var(--bg-editor);
color: var(--fg);
font-size: var(--fs-ui);
}
.column {
display: flex;
flex-direction: column;
padding: 6px 0;
}
.title {
max-width: 42em;
margin: 0;
padding: 20px 16px;
color: var(--fg-strong);
font-size: 1.4em;
font-weight: 700;
line-height: 1.3;
overflow-wrap: anywhere;
user-select: text;
}
.link {
padding: 0;
border: 0;
background: none;
color: var(--link);
font: inherit;
text-decoration: none;
cursor: pointer;
}
.link:hover {
text-decoration: underline;
}
.paragraph {
margin: 0;
}
.paragraph + .paragraph {
margin-top: 4px;
}
.commits {
display: flex;
flex-direction: column;
gap: 4px;
}
.commit {
display: flex;
flex-direction: column;
}
.branch {
display: inline-flex;
padding: 0 4px 0 2px;
border-radius: 3px;
background: var(--bg-hover);
vertical-align: bottom;
}
.loadingThreads {
padding: 16px 10px 16px 60px;
color: var(--fg-secondary);
}
.status {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
max-width: calc(42em + 32px);
padding: 16px 10px;
text-align: center;
}
.errorTitle {
font-weight: 600;
}
.errorText {
color: var(--fg-secondary);
white-space: pre-wrap;
}
.mergedTitle {
font-weight: 700;
}
.mergedBody {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
}
.composer {
padding: 10px 16px;
}
.placeholder {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}