Skip to content

Commit 4681b40

Browse files
committed
fix(agent-task/capi): fix capi API version
Signed-off-by: Babak K. Shandiz <babakks@github.com>
1 parent 3521604 commit 4681b40

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)