gh-prism: Sectioned Pull Request Review 作者: excessive.dev
Review GitHub pull requests one part at a time. Sorts changed files into Implementation, Tests, Docs, Config, and Generated.
扩展元数据
屏幕截图
关于此扩展
gh-prism is a Chrome and Firefox extension that sorts a GitHub pull request's changed files into sections, so you can review one part at a time. It started by copying how other review tools split a pull request's lines changed, and has grown from there: it now also works on commit pages and on a pull request's Conversation tab.
AI-assisted pull requests often look large when only a small part of them is implementation, and gh-prism lets you review that part first. See what it does.
What it does
gh-prism runs on commit pages and on a pull request's new Files changed tab (
Sections in a sidebar
gh-prism replaces the file tree with a sidebar that sorts changed files into Implementation, Tests, Docs & Comments, Config, and Generated / lockfiles.
Code owners
On a pull request, a file with code owners shows a shield when you hover or focus its row. Rest the pointer on the shield to see who owns the file, or click it for details.
Viewed tracking
Files you've marked Viewed are dimmed in every section, and each section's heading counts them (
Lines changed by section
The lines-changed count in the header splits into one count per section.
Conversation panel
On Files changed, the Conversation button at the left end of the toolbar, or
Commit pages
A commit message longer than its subject line renders as Markdown in a column beside its diffs, and Older and Newer links step through its history.
AI-assisted pull requests often look large when only a small part of them is implementation, and gh-prism lets you review that part first. See what it does.
What it does
gh-prism runs on commit pages and on a pull request's new Files changed tab (
/pull/<number>/changes), which GitHub offers as a feature preview; see Troubleshooting to turn it on. Its code-owner shields also show on a pull request's Conversation tab, and its lines-changed counts on the Conversation, Commits, and Checks tabs.Sections in a sidebar
gh-prism replaces the file tree with a sidebar that sorts changed files into Implementation, Tests, Docs & Comments, Config, and Generated / lockfiles.
- A file whose changes belong in more than one section is listed under each, marked
Partial. - Comment-only changes count toward Docs & Comments. An Implementation file's comment lines are listed under Implementation comments.
- The diffs follow the sidebar's order, except on very large pull requests, and clicking a section's heading collapses it.
Code owners
On a pull request, a file with code owners shows a shield when you hover or focus its row. Rest the pointer on the shield to see who owns the file, or click it for details.
- On the Conversation tab, the shield beside a team or person in the Reviewers list lists the changed files they own.
- Only files owned by… in the file tree's filter menu, or
gh-prism-owner=<owner>in the Files changed URL, shows only one owner's files. The owner is a team such asorg/team, or a user's login. - GitHub shows you teams only in your own organizations, so a user's filter leaves out files they own through a team you can't see.
Viewed tracking
Files you've marked Viewed are dimmed in every section, and each section's heading counts them (
N/M).
- Tick a row's checkbox, or Alt-click the row (Option-click on macOS), to mark the file Viewed. Do either again to unmark it.
- It stays in step with GitHub's own Viewed toggle.
Lines changed by section
The lines-changed count in the header splits into one count per section.
- It shows on Files changed and commit pages, and on a pull request's Conversation, Commits, and Checks tabs.
- Click the counts to switch to GitHub's total and back. gh-prism remembers your choice.
Conversation panel
On Files changed, the Conversation button at the left end of the toolbar, or
Shift+\, opens the pull request's Conversation tab in a panel on the left, so you can read and reply to it without leaving the diffs.
- Pin the panel to keep it open as a column beside the diffs, and drag its edge to resize it. Unpinned, it covers the page, and a click outside it or
Esccloses it. - Buttons in its header jump to the pull request's checks, and to its reviewers, labels, and projects.
Commit pages
A commit message longer than its subject line renders as Markdown in a column beside its diffs, and Older and Newer links step through its history.
- Drag the column's edge to resize it. Show plain text shows the message as GitHub does, and Hide hides it on that commit.
- Press
Shift+Jfor Older andShift+Kfor Newer, unless you're typing.
评分 0(1 位用户)
权限与数据
必要权限:
- 访问您在 github.com 的数据
可选权限:
- 访问您在 github.com 的数据
- 访问您在 patch-diff.githubusercontent.com 的数据
- 访问您在 raw.githubusercontent.com 的数据
收集的数据:
- 开发者称此扩展无需收集数据。
更多信息