@@ -173,8 +173,11 @@ type PremiumRequestUsageReport struct {
173173
174174// GetOrganizationPackagesBilling returns the free and paid storage used for GitHub Packages in gigabytes for an Org.
175175//
176- // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
177- // See https://github.com/google/go-github/issues/3894 for details.
176+ // Deprecated: This endpoint has been deprecated by GitHub.
177+ //
178+ // GitHub API docs: https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-github-packages-billing-for-an-organization
179+ //
180+ //meta:operation GET /orgs/{org}/settings/billing/packages
178181func (s * BillingService ) GetOrganizationPackagesBilling (ctx context.Context , org string ) (* PackagesBilling , * Response , error ) {
179182 u := fmt .Sprintf ("orgs/%v/settings/billing/packages" , org )
180183 req , err := s .client .NewRequest (ctx , "GET" , u , nil )
@@ -194,8 +197,11 @@ func (s *BillingService) GetOrganizationPackagesBilling(ctx context.Context, org
194197// GetOrganizationStorageBilling returns the estimated paid and estimated total storage used for GitHub Actions
195198// and GitHub Packages in gigabytes for an Org.
196199//
197- // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
198- // See https://github.com/google/go-github/issues/3894 for details.
200+ // Deprecated: This endpoint has been deprecated by GitHub.
201+ //
202+ // GitHub API docs: https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-shared-storage-billing-for-an-organization
203+ //
204+ //meta:operation GET /orgs/{org}/settings/billing/shared-storage
199205func (s * BillingService ) GetOrganizationStorageBilling (ctx context.Context , org string ) (* StorageBilling , * Response , error ) {
200206 u := fmt .Sprintf ("orgs/%v/settings/billing/shared-storage" , org )
201207 req , err := s .client .NewRequest (ctx , "GET" , u , nil )
@@ -240,8 +246,11 @@ func (s *BillingService) GetOrganizationAdvancedSecurityActiveCommitters(ctx con
240246
241247// GetPackagesBilling returns the free and paid storage used for GitHub Packages in gigabytes for a user.
242248//
243- // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
244- // See https://github.com/google/go-github/issues/3894 for details.
249+ // Deprecated: This endpoint has been deprecated by GitHub.
250+ //
251+ // GitHub API docs: https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-github-packages-billing-for-a-user
252+ //
253+ //meta:operation GET /users/{username}/settings/billing/packages
245254func (s * BillingService ) GetPackagesBilling (ctx context.Context , user string ) (* PackagesBilling , * Response , error ) {
246255 u := fmt .Sprintf ("users/%v/settings/billing/packages" , user )
247256 req , err := s .client .NewRequest (ctx , "GET" , u , nil )
@@ -261,8 +270,11 @@ func (s *BillingService) GetPackagesBilling(ctx context.Context, user string) (*
261270// GetStorageBilling returns the estimated paid and estimated total storage used for GitHub Actions
262271// and GitHub Packages in gigabytes for a user.
263272//
264- // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
265- // See https://github.com/google/go-github/issues/3894 for details.
273+ // Deprecated: This endpoint has been deprecated by GitHub.
274+ //
275+ // GitHub API docs: https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-shared-storage-billing-for-a-user
276+ //
277+ //meta:operation GET /users/{username}/settings/billing/shared-storage
266278func (s * BillingService ) GetStorageBilling (ctx context.Context , user string ) (* StorageBilling , * Response , error ) {
267279 u := fmt .Sprintf ("users/%v/settings/billing/shared-storage" , user )
268280 req , err := s .client .NewRequest (ctx , "GET" , u , nil )
0 commit comments