Batch spec library now customizable via API
Site admins can now fully customize the examples shown in the batch spec library - visible when defining a batch spec for a new batch change - using three new GraphQL APIs:
createBatchSpecLibraryRecord
updateBatchSpecLibraryRecord
deleteBatchSpecLibraryRecord
With this change customers can now automate how they manage and display batch spec examples across their organization. With this API, they can now create their own examples, or even sync examples from their internal source of truth into Sourcegraph automatically.

Only site admins can modify the library, and there’s currently no UI for managing examples (though we’re open to building one based on feedback). End users can still view the examples, but won’t be able to make edits.
By default, the library displays up to 20 examples. However, admins can raise this limit to 1000 by toggling the batches-library-limit
feature flag - though we recommend caution, as the UI isn’t optimized for that many entries yet.
Learn more about the batch spec library in our docs.