Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 0f91b8b

Browse files
committed
Fixing errors
1 parent 0098d77 commit 0f91b8b

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

cmd/create_repo.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,9 @@ func RunCreateRepo(cmd *cobra.Command, args []string) {
6767
RemoveDefaultLabels: globalConfig.Github.RemoveDefaultLabels,
6868
Labels: globalConfig.Github.Labels,
6969
},
70-
Teams: &repo.TeamsOpts{
71-
Teams: globalConfig.Github.Teams,
72-
},
73-
Webhooks: &repo.WebhooksOpts{
74-
Webhooks: globalConfig.Github.Webhooks,
75-
},
76-
BranchProtections: &repo.BranchProtectionsOpts{
77-
Protections: globalConfig.Github.Protections,
78-
},
70+
Teams: globalConfig.Github.Teams,
71+
Webhooks: globalConfig.Github.Webhooks,
72+
BranchProtections: globalConfig.Github.Protections,
7973
}
8074

8175
creator := repo.NewGithub(githubClient)

cmd/create_test_repo.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ func RunCreateTestRepo(cmd *cobra.Command, args []string) {
6060
checkEmpty(err, "Could not create github repo for candidate")
6161

6262
color.White("Adding collaborators to repository...")
63-
opts := &repo.CollaboratorsOpts{
64-
Collaborators: []*config.Collaborator{
65-
&config.Collaborator{
66-
Username: candidate,
67-
Permission: "push",
68-
},
63+
opts := []*config.Collaborator{
64+
&config.Collaborator{
65+
Username: candidate,
66+
Permission: "push",
6967
},
7068
}
7169
err = creator.AddCollaborators(target, org, opts)

0 commit comments

Comments
 (0)