diff --git a/CHANGELOG.md b/CHANGELOG.md index 044ef46b99..cbf65ae855 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ All notable changes to `src-cli` are documented in this file. ### Fixed +- Directly applying a batch change with `src batch apply` against Sourcegraph 3.25 or older would fail in 3.26.0. This has been fixed. [#495](https://github.com/sourcegraph/src-cli/issues/495) + ### Removed ## 3.26.0 diff --git a/internal/batches/graphql/campaigns.go b/internal/batches/graphql/campaigns.go index e9e8e9da93..3d58d6b239 100644 --- a/internal/batches/graphql/campaigns.go +++ b/internal/batches/graphql/campaigns.go @@ -30,7 +30,7 @@ func (cb *campaignsBackend) ApplyBatchChange(ctx context.Context, batchSpecID Ba var result struct { BatchChange *BatchChange `json:"applyCampaign"` } - if ok, err := cb.newRequest(applyBatchChangeMutation, map[string]interface{}{ + if ok, err := cb.newRequest(applyCampaignMutation, map[string]interface{}{ "campaignSpec": batchSpecID, }).Do(ctx, &result); err != nil || !ok { return nil, err