Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. integration
  3. phabricator

Phabricator integration with Sourcegraph

⚠️ NOTE: Sourcegraph support of Phabricator is limited, and not expected to evolve due to the announced cease of support for Phabricator.

This Phabricator integration does not support listing and mirroring Phabricator repositories (as it does for repositories on other code hosts). It is intended for use when your repositories are hosted somewhere else (such as GitHub), and Phabricator mirrors repositories from that code host. If your repositories are hosted on Phabricator, you must follow the steps in "Other Git repository hosts" to add the repositories so that they are mirrored to Sourcegraph in addition to the steps outlined here to power the integration. Sourcegraph does not currently support using the repository permissions you've set in Phabricator for repositories hosted on Phabricator.

FeatureSupported?
Repository syncing and mirroring❌
Repository association✅
Repository permission syncing❌
User authentication❌
Browser extension✅
Native extension✅

Repository association

Site admins can associate Phabricator repositories with Sourcegraph.

Browser extension

The Sourcegraph browser extension supports Phabricator. When installed in your web browser, it adds hover tooltips, go-to-definition, find-references, and code search to files and diffs viewed on Phabricator.

  1. Install the Sourcegraph browser extension.
  2. Configure the browser extension to use your Sourcegraph instance.
  3. To allow the browser extension to work on your Phabricator instance:
    • Navigate to any page on Phabricator.
    • Right-click the Sourcegraph icon in the browser extension toolbar.
    • Click "Enable Sourcegraph on this domain".
    • Click "Allow" in the permissions request popup.
  4. Visit any file or diff on Phabricator. Hover over code or click the "View file" and "View repository" buttons.

NOTE: Site admins can also install the native Phabricator extension to avoid needing each user to install the browser extension.

On this page

  1. Phabricator integration with Sourcegraph

    1. Repository association
    1. Browser extension

Edit this page on GitHub
Questions? Give us feedback