Skip to content

Commit 5b225f9

Browse files
authored
batches: fix batch apply on old Sourcegraph versions (#496)
Fixes #495.
1 parent 90bee8e commit 5b225f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ All notable changes to `src-cli` are documented in this file.
1717

1818
### Fixed
1919

20+
- 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)
21+
2022
### Removed
2123

2224
## 3.26.0

internal/batches/graphql/campaigns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (cb *campaignsBackend) ApplyBatchChange(ctx context.Context, batchSpecID Ba
3030
var result struct {
3131
BatchChange *BatchChange `json:"applyCampaign"`
3232
}
33-
if ok, err := cb.newRequest(applyBatchChangeMutation, map[string]interface{}{
33+
if ok, err := cb.newRequest(applyCampaignMutation, map[string]interface{}{
3434
"campaignSpec": batchSpecID,
3535
}).Do(ctx, &result); err != nil || !ok {
3636
return nil, err

0 commit comments

Comments
 (0)