From bbc37ddb14731e61d75c74172e6ea3802060209c Mon Sep 17 00:00:00 2001 From: Gerrit91 Date: Wed, 10 Jan 2024 08:50:19 +0100 Subject: [PATCH] Back. --- pkg/webhooks/github/actions/repository_maintainers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhooks/github/actions/repository_maintainers.go b/pkg/webhooks/github/actions/repository_maintainers.go index 4463414..bbbd829 100644 --- a/pkg/webhooks/github/actions/repository_maintainers.go +++ b/pkg/webhooks/github/actions/repository_maintainers.go @@ -89,7 +89,7 @@ func (r *repositoryMaintainers) CreateRepositoryMaintainers(ctx context.Context, for _, additionalTeam := range r.additionalTeams { additionalTeam := additionalTeam - _, err := r.client.GetV3Client().Teams.AddTeamRepoBySlug(ctx, r.client.Organization(), additionalTeam.teamSlug, p.Creator, p.RepositoryName, &v3.TeamAddTeamRepoOptions{ + _, err := r.client.GetV3Client().Teams.AddTeamRepoBySlug(ctx, r.client.Organization(), additionalTeam.teamSlug, p.Creator, r.client.Owner(), &v3.TeamAddTeamRepoOptions{ Permission: additionalTeam.permission, }) if err != nil {