filterCodespacesByRepoOwner filters a list of codespaces by the owner of the repository.
(codespaces []*api.Codespace, repoOwner string)
| 260 | |
| 261 | // filterCodespacesByRepoOwner filters a list of codespaces by the owner of the repository. |
| 262 | func filterCodespacesByRepoOwner(codespaces []*api.Codespace, repoOwner string) []*api.Codespace { |
| 263 | filtered := make([]*api.Codespace, 0, len(codespaces)) |
| 264 | for _, c := range codespaces { |
| 265 | if strings.EqualFold(c.Repository.Owner.Login, repoOwner) { |
| 266 | filtered = append(filtered, c) |
| 267 | } |
| 268 | } |
| 269 | return filtered |
| 270 | } |
no outgoing calls
no test coverage detected