Chrome extension that redirects GitHub pull requests to their Sourcegraph changeset review page. Defaults to sourcegraph/sourcegraph on sourcegraph.sourcegraph.com; both are configurable.
github.com/sourcegraph/sourcegraph/pull/12345
→ sourcegraph.sourcegraph.com/changesets/gh/sourcegraph/sourcegraph/12345
PR subpages (/files, /commits) redirect too. Repos not in your list are untouched.
Watch the overview on Loom (requires sign-in).
npm install
npm run build- Open
chrome://extensionsand turn on Developer mode. - Click Load unpacked and select this folder.
Right-click the toolbar icon and choose Options:
- Sourcegraph instance URL: your instance, for example
https://sourcegraph.example.com. - GitHub repos to redirect: one
owner/repoper line, orowner/*for a whole org.
Click the toolbar icon to toggle. An OFF badge means redirects are paused, so you can reach the GitHub PR page (for example, to merge). The setting persists across restarts.
npm run buildcompilessrc/todist/. Reload the extension inchrome://extensionsafter rebuilding.npm run iconsregenerates the PNG icons fromicons/icon.svg.