By Quinn Slack on February 8, 2018
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:
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.
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.
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).
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.
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.
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.
We’ve added search scope pages to more easily share search scopes among team members. Add the
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 @srcgraph.
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.
See the Sourcegraph changelog for a list of all changes in this release.
Install Sourcegraph 2.5 to bring powerful code search to your developers.