batch-change-examples icon indicating copy to clipboard operation
batch-change-examples copied to clipboard

A collection of examples for Batch Changes

Batch Changes examples

Example batch specs to get you started with Batch Changes. Contributions welcome!

Getting started

Take a look at the Sourcegraph documentation on Batch Changes to learn what batch changes are and how to run them.

Examples

  • Rewrite Go import paths using Comby
  • Refactor Go code with Comby
  • Open Jira tickets alongside changesets
  • Open GitHub tickets alongside changesets (declarative)
  • Update deprecated GraphQL API query
  • Update the Docker Hub username in Circle CI configurations
  • Migrate from Python 2 to 3
  • Update package.json for NPM dependencies
  • Rewrite interface{} to any in Go 1.18 code

For a list of static-checker style linting rules for go, also see comby go-patterns.

Other examples

Also see how Batch Changes can help respond to a vulnerability with this example