Skip to content

Commit 9e82fc2

Browse files
authored
Merge pull request cli#12731 from cli/babakks/fix-agent-task-api-version
fix(agent-task/capi): use a fixed CAPI API version
2 parents 3521604 + 4681b40 commit 9e82fc2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/cmd/agent-task/capi/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ func (ct *capiTransport) RoundTrip(req *http.Request) (*http.Response, error) {
6262
// ID only when performing requests to the Copilot API.
6363
if req.URL.Host == capiHost {
6464
req.Header.Add("Copilot-Integration-Id", "copilot-4-cli")
65+
66+
// This is quick fix to ensure that we are not using GitHub API versions while targeting CAPI.
67+
req.Header.Set("X-GitHub-Api-Version", "2026-01-09")
6568
}
6669
return ct.rp.RoundTrip(req)
6770
}

0 commit comments

Comments
 (0)