From 376650c3f68bdfea9537b1c80f9392845b93b4d7 Mon Sep 17 00:00:00 2001 From: Keegan Carruthers-Smith Date: Tue, 3 Feb 2026 13:34:40 +0200 Subject: [PATCH 1/2] docs/batches: Document batchChanges.restrictMergeToAdmins setting Adds documentation for the new batchChanges.restrictMergeToAdmins site config option which restricts merge and auto-merge actions to site admins only. This is useful when using the Batch Changes GitHub App with elevated access, where the App may have write permissions to repositories that individual users do not. See sourcegraph/sourcegraph#9559 Note: This PR should only be merged once Sourcegraph 6.13 is released. Amp-Thread-ID: https://ampcode.com/threads/T-019c2344-7386-702e-8b12-7ec2de618f53 Co-authored-by: Amp --- docs/admin/config/batch-changes.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/admin/config/batch-changes.mdx b/docs/admin/config/batch-changes.mdx index 442da3d67..ed74f79e4 100644 --- a/docs/admin/config/batch-changes.mdx +++ b/docs/admin/config/batch-changes.mdx @@ -10,6 +10,18 @@ Batch Changes is [RBAC-enabled](/admin/access-control/) Date: Thu, 26 Feb 2026 09:10:40 +0200 Subject: [PATCH 2/2] fix/docs: link GitHub App references to credentials page instead of commit signing The reviewer correctly pointed out that the GitHub App links should direct users to the credentials setup page rather than the commit signing section, since the context is about configuring GitHub App credentials with elevated access, not commit signing. Test Plan: Verified links point to /batch-changes/configuring-credentials#github-apps Amp-Thread-ID: https://ampcode.com/threads/T-019c98c8-5f5c-73b9-bea8-e7d43529910c Co-authored-by: Amp --- docs/admin/config/batch-changes.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/config/batch-changes.mdx b/docs/admin/config/batch-changes.mdx index ed74f79e4..dc56ac08e 100644 --- a/docs/admin/config/batch-changes.mdx +++ b/docs/admin/config/batch-changes.mdx @@ -12,7 +12,7 @@ By default, only a batch change's author or a site admin can administer (apply, ### Restrict merge actions to site admins -When using the [Batch Changes GitHub App](#commit-signing-with-github-apps) with elevated access, the App may have write access to repositories that individual users do not. To restrict who can merge changesets via the Batch Changes UI, set the `batchChanges.restrictMergeToAdmins` site configuration option to `true`: +When using the [Batch Changes GitHub App](/batch-changes/configuring-credentials#github-apps) with elevated access, the App may have write access to repositories that individual users do not. To restrict who can merge changesets via the Batch Changes UI, set the `batchChanges.restrictMergeToAdmins` site configuration option to `true`: ```json {