validateNWO returns an error if nwo is not a valid "owner/repo" repository reference.
(nwo string)
| 254 | |
| 255 | // validateNWO returns an error if nwo is not a valid "owner/repo" repository reference. |
| 256 | func validateNWO(nwo string) error { |
| 257 | _, _, err := safeurl.RepoPartsFromNWO(nwo) |
| 258 | return err |
| 259 | } |
| 260 | |
| 261 | // filterCodespacesByRepoOwner filters a list of codespaces by the owner of the repository. |
| 262 | func filterCodespacesByRepoOwner(codespaces []*api.Codespace, repoOwner string) []*api.Codespace { |
no test coverage detected