(c *api.Client, config linkConfig)
| 194 | } |
| 195 | |
| 196 | func linkRepo(c *api.Client, config linkConfig) error { |
| 197 | repo, err := api.GitHubRepo(c, ghrepo.NewWithHost(config.opts.owner, config.opts.repo, config.opts.host)) |
| 198 | if err != nil { |
| 199 | return err |
| 200 | } |
| 201 | config.opts.repoID = repo.ID |
| 202 | |
| 203 | err = config.client.LinkProjectToRepository(config.opts.projectID, config.opts.repoID) |
| 204 | if err != nil { |
| 205 | return err |
| 206 | } |
| 207 | |
| 208 | return printResults(config, config.opts.repo) |
| 209 | } |
| 210 | |
| 211 | func linkTeam(c *api.Client, config linkConfig) error { |
| 212 | team, err := api.OrganizationTeam(c, config.opts.host, config.opts.owner, config.opts.team) |
no test coverage detected