Skip to content

Commit 059fb59

Browse files
authored
docs: Deprecate old Copilot metrics endpoints closed on April 2, 2026 (#4137)
1 parent 7d06267 commit 059fb59

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

github/copilot.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ func (s *CopilotService) GetSeatDetails(ctx context.Context, org, user string) (
491491

492492
// GetEnterpriseMetrics gets Copilot usage metrics for an enterprise.
493493
//
494+
// Deprecated: This endpoint was closed down on April 2, 2026 for github.com.
495+
// It may still be available for GitHub Enterprise Server. Use GetEnterpriseDailyMetricsReport
496+
// or GetEnterpriseMetricsReport instead.
497+
//
494498
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise
495499
//
496500
//meta:operation GET /enterprises/{enterprise}/copilot/metrics
@@ -517,6 +521,10 @@ func (s *CopilotService) GetEnterpriseMetrics(ctx context.Context, enterprise st
517521

518522
// GetEnterpriseTeamMetrics gets Copilot usage metrics for an enterprise team.
519523
//
524+
// Deprecated: This endpoint was closed down on April 2, 2026 for github.com.
525+
// It may still be available for GitHub Enterprise Server. Use GetEnterpriseDailyMetricsReport
526+
// or GetEnterpriseMetricsReport instead.
527+
//
520528
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team
521529
//
522530
//meta:operation GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics
@@ -543,6 +551,10 @@ func (s *CopilotService) GetEnterpriseTeamMetrics(ctx context.Context, enterpris
543551

544552
// GetOrganizationMetrics gets Copilot usage metrics for an organization.
545553
//
554+
// Deprecated: This endpoint was closed down on April 2, 2026 for github.com.
555+
// It may still be available for GitHub Enterprise Server. Use GetOrganizationDailyMetricsReport
556+
// or GetOrganizationMetricsReport instead.
557+
//
546558
// GitHub API docs: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-organization
547559
//
548560
//meta:operation GET /orgs/{org}/copilot/metrics
@@ -569,6 +581,10 @@ func (s *CopilotService) GetOrganizationMetrics(ctx context.Context, org string,
569581

570582
// GetOrganizationTeamMetrics gets Copilot usage metrics for an organization team.
571583
//
584+
// Deprecated: This endpoint was closed down on April 2, 2026 for github.com.
585+
// It may still be available for GitHub Enterprise Server. Use GetOrganizationDailyMetricsReport
586+
// or GetOrganizationMetricsReport instead.
587+
//
572588
// GitHub API docs: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team
573589
//
574590
//meta:operation GET /orgs/{org}/team/{team_slug}/copilot/metrics

0 commit comments

Comments
 (0)