@@ -111,6 +111,8 @@ func (s *TeamsService) ListTeams(ctx context.Context, org string, opts *ListOpti
111
111
112
112
// GetTeamByID fetches a team, given a specified organization ID, by ID.
113
113
//
114
+ // Deprecated: Use GetTeamBySlug instead.
115
+ //
114
116
// GitHub API docs: https://docs.github.com/rest/teams/teams#get-a-team-by-name
115
117
//
116
118
//meta:operation GET /orgs/{org}/teams/{team_slug}
@@ -237,6 +239,8 @@ func copyNewTeamWithoutParent(team *NewTeam) *newTeamNoParent {
237
239
238
240
// EditTeamByID edits a team, given an organization ID, selected by ID.
239
241
//
242
+ // Deprecated: Use EditTeamBySlug instead.
243
+ //
240
244
// GitHub API docs: https://docs.github.com/rest/teams/teams#update-a-team
241
245
//
242
246
//meta:operation PATCH /orgs/{org}/teams/{team_slug}
@@ -295,6 +299,8 @@ func (s *TeamsService) EditTeamBySlug(ctx context.Context, org, slug string, tea
295
299
296
300
// DeleteTeamByID deletes a team referenced by ID.
297
301
//
302
+ // Deprecated: Use DeleteTeamBySlug instead.
303
+ //
298
304
// GitHub API docs: https://docs.github.com/rest/teams/teams#delete-a-team
299
305
//
300
306
//meta:operation DELETE /orgs/{org}/teams/{team_slug}
@@ -325,6 +331,8 @@ func (s *TeamsService) DeleteTeamBySlug(ctx context.Context, org, slug string) (
325
331
326
332
// ListChildTeamsByParentID lists child teams for a parent team given parent ID.
327
333
//
334
+ // Deprecated: Use ListChildTeamsByParentSlug instead.
335
+ //
328
336
// GitHub API docs: https://docs.github.com/rest/teams/teams#list-child-teams
329
337
//
330
338
//meta:operation GET /orgs/{org}/teams/{team_slug}/teams
@@ -377,6 +385,8 @@ func (s *TeamsService) ListChildTeamsByParentSlug(ctx context.Context, org, slug
377
385
378
386
// ListTeamReposByID lists the repositories given a team ID that the specified team has access to.
379
387
//
388
+ // Deprecated: Use ListTeamReposBySlug instead.
389
+ //
380
390
// GitHub API docs: https://docs.github.com/rest/teams/teams#list-team-repositories
381
391
//
382
392
//meta:operation GET /orgs/{org}/teams/{team_slug}/repos
@@ -437,6 +447,8 @@ func (s *TeamsService) ListTeamReposBySlug(ctx context.Context, org, slug string
437
447
// repository is managed by team, a Repository is returned which includes the
438
448
// permissions team has for that repo.
439
449
//
450
+ // Deprecated: Use IsTeamRepoBySlug instead.
451
+ //
440
452
// GitHub API docs: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository
441
453
//
442
454
//meta:operation GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
@@ -502,6 +514,8 @@ type TeamAddTeamRepoOptions struct {
502
514
// The specified repository must be owned by the organization to which the team
503
515
// belongs, or a direct fork of a repository owned by the organization.
504
516
//
517
+ // Deprecated: Use AddTeamRepoBySlug instead.
518
+ //
505
519
// GitHub API docs: https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions
506
520
//
507
521
//meta:operation PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
@@ -536,6 +550,8 @@ func (s *TeamsService) AddTeamRepoBySlug(ctx context.Context, org, slug, owner,
536
550
// team given the team ID. Note that this does not delete the repository, it
537
551
// just removes it from the team.
538
552
//
553
+ // Deprecated: Use RemoveTeamRepoBySlug instead.
554
+ //
539
555
// GitHub API docs: https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team
540
556
//
541
557
//meta:operation DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
@@ -594,6 +610,8 @@ func (s *TeamsService) ListUserTeams(ctx context.Context, opts *ListOptions) ([]
594
610
595
611
// ListTeamProjectsByID lists the organization projects for a team given the team ID.
596
612
//
613
+ // Deprecated: Use ListTeamProjectsBySlug instead.
614
+ //
597
615
// GitHub API docs: https://docs.github.com/rest/teams/teams#list-team-projects
598
616
//
599
617
//meta:operation GET /orgs/{org}/teams/{team_slug}/projects
@@ -645,6 +663,8 @@ func (s *TeamsService) ListTeamProjectsBySlug(ctx context.Context, org, slug str
645
663
// ReviewTeamProjectsByID checks whether a team, given its ID, has read, write, or admin
646
664
// permissions for an organization project.
647
665
//
666
+ // Deprecated: Use ReviewTeamProjectsBySlug instead.
667
+ //
648
668
// GitHub API docs: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project
649
669
//
650
670
//meta:operation GET /orgs/{org}/teams/{team_slug}/projects/{project_id}
@@ -708,6 +728,8 @@ type TeamProjectOptions struct {
708
728
// To add a project to a team or update the team's permission on a project, the
709
729
// authenticated user must have admin permissions for the project.
710
730
//
731
+ // Deprecated: Use AddTeamProjectBySlug instead.
732
+ //
711
733
// GitHub API docs: https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions
712
734
//
713
735
//meta:operation PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}
@@ -751,6 +773,8 @@ func (s *TeamsService) AddTeamProjectBySlug(ctx context.Context, org, slug strin
751
773
// or project.
752
774
// Note: This endpoint removes the project from the team, but does not delete it.
753
775
//
776
+ // Deprecated: Use RemoveTeamProjectBySlug instead.
777
+ //
754
778
// GitHub API docs: https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team
755
779
//
756
780
//meta:operation DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}
@@ -839,6 +863,8 @@ func (s *TeamsService) ListIDPGroupsInOrganization(ctx context.Context, org stri
839
863
// ListIDPGroupsForTeamByID lists IDP groups connected to a team on GitHub
840
864
// given organization and team IDs.
841
865
//
866
+ // Deprecated: Use ListIDPGroupsForTeamBySlug instead.
867
+ //
842
868
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#list-idp-groups-for-a-team
843
869
//
844
870
//meta:operation GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
@@ -885,6 +911,8 @@ func (s *TeamsService) ListIDPGroupsForTeamBySlug(ctx context.Context, org, slug
885
911
// CreateOrUpdateIDPGroupConnectionsByID creates, updates, or removes a connection
886
912
// between a team and an IDP group given organization and team IDs.
887
913
//
914
+ // Deprecated: Use CreateOrUpdateIDPGroupConnectionsBySlug instead.
915
+ //
888
916
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#create-or-update-idp-group-connections
889
917
//
890
918
//meta:operation PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
0 commit comments