Skip to content
Closed
2 changes: 1 addition & 1 deletion github/copilot_cloud_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type CopilotCloudAgentEnabledTools struct {
func (s *CopilotService) GetCloudAgentConfiguration(ctx context.Context, owner, repo string) (*CopilotCloudAgentConfiguration, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/copilot/cloud-agent/configuration", owner, repo)

req, err := s.client.NewRequest(ctx, "GET", u, nil)
req, err := s.client.NewRequest(ctx, "GET", u, nil, WithVersion(api20260310))
if err != nil {
return nil, nil, err
}
Expand Down
1 change: 1 addition & 0 deletions github/copilot_cloud_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func TestCopilotService_GetCloudAgentConfiguration(t *testing.T) {

mux.HandleFunc("/repos/o/r/copilot/cloud-agent/configuration", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
testHeader(t, r, "X-Github-Api-Version", api20260310)
fmt.Fprint(w, tt.responseBody)
})

Expand Down
Loading