Sourcegraph 2.5: Introducing code change alerts

Quinn Slack

Monitor code changes with Google Alerts-style notifications, get code intelligence in reviews/PRs, and search over thousands of repositories in hundreds of milliseconds—all with Sourcegraph 2.5, shipping today. This release also includes other highly requested features, such as native GitLab support and enhanced search scopes (plus performance improvements and bug fixes).

Sourcegraph gives the power of code search and intelligence to every developer at your company, so you can ship better code faster. It runs securely in your own network, takes 5 minutes to install, and is easy to upgrade.

Ready to install or upgrade? Install Sourcegraph 2.5

Key highlights of Sourcegraph 2.5:

Code change notifications

We've added email and Slack notifications for saved searches, so you get "Google Alerts"-style notifications for any code change that matches a query. You can use this to get notified when there are API changes, new dependencies, use of certain OSS licenses (such as GPL), security- and authentication-related changes, AWS secret keys committed in code, etc. Set up saved searches and notifications.

Email notifications
Slack notifications

Built-in saved searches

Sourcegraph now ships with a selection of built-in, common saved searches. Click Queries and then Discover built-in searches to view a list of built-in searches that are useful in most codebases. This includes searches for code committed with copyleft (GPL) licenses, security and authentication changes, and potential secrets and API tokens. Save the ones that look useful to you to start monitoring your codebase.

Built-in saved searches

Code intelligence

Code intelligence can now be added to any Sourcegraph instance with a single command. (Previously it required the Kubernetes-based cluster deployment option.)

Code intelligence makes reviewing and navigating code easier with go-to-definition, find-references, and hover tooltips. By connecting the popular Sourcegraph browser extension to Sourcegraph, you can even get code intelligence inline on GitHub and GitHub Enterprise (on PRs and code files).

Get code intelligence for Go, Python, JavaScript, TypeScript, Java, and PHP today.

CodeIntel2sc

For cluster deployments, we’ve shipped a hybrid search backend that offers blazing-fast searches over 10,000+ repositories, on the order of hundreds of milliseconds, while still giving you up-to-date results without any indexing delay. It intelligently merges results from indexed search and on-the-fly search, giving you the best of both worlds.

Hybrid search is enabled by default in Sourcegraph cluster deployments. See "Indexed search" for instructions on how to enable it in single-Docker-image deployments.

GitLab support

You can now easily configure Sourcegraph to search across all of your GitLab projects (on GitLab.com, GitLab CE, and GitLab EE). Just put in your access token in site config (using the "Add GitLab projects" button), restart, and select which projects to enable. See the documentation for full instructions. As always, Git repositories from code hosts other than GitHub and GitLab can also be added.

Improved search scopes UI

Search scopes are now accessible on every page to more easily filter your search. Click the down-arrow next to the search bar to view your scopes and refine your search. See the documentation on adding search scopes.

Search scope pages

We’ve added search scope pages to more easily share search scopes among team members. Add the id and description fields to the search.scopes config option to get a page that automatically filters your search to the specified scope. We’ve also added public search scope pages for popular groups of repositories on Sourcegraph.com, including the top 1000 Rust crates, 100 most depended-upon npm packages, core Ethereum code, and Go code by the Go team.

Have an idea for a search scope that would be useful to your community? Tweet us @sourcegraph.

SearchScopePage

Integrations settings page

We've made it easier to connect your Sourcegraph instance to the Sourcegraph browser extension and your browser's address bar search. Click Integrations in your personal settings area to install the browser extension and connect it to your Sourcegraph instance. You'll also find instructions for setting up Sourcegraph as a custom search engine in your browser's address bar. Site admins can now send users to this page to more easily roll out the browser extension and browser address bar search.

CodeIntelPR

Changelog

See the Sourcegraph changelog for a list of all changes in this release.

Upgrade today

Install Sourcegraph 2.5 to bring powerful code search to your developers.

About the author

Quinn Slack is the CEO and co-founder of Sourcegraph, the code intelligence platform for dev teams and making coding more accessible to more people. Prior to Sourcegraph, Quinn co-founded Blend Labs, an enterprise technology company dedicated to improving home lending and was an egineer at Palantir, where he created a technology platform to help two of the top five U.S. banks recover from the housing crisis. Quinn has a BS in Computer Science from Stanford, you can chat with him on Twitter @sqs.

Get Cody, the AI coding assistant

Cody makes it easy to write, fix, and maintain code.