(title string)
| 860 | } |
| 861 | |
| 862 | func (m *RepoMetadataResult) v2ProjectTitleToID(title string) (string, bool) { |
| 863 | for _, p := range m.ProjectsV2 { |
| 864 | if strings.EqualFold(title, p.Title) { |
| 865 | return p.ID, true |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | return "", false |
| 870 | } |
| 871 | |
| 872 | func ProjectTitlesToPaths(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support) ([]string, error) { |
| 873 | paths := make([]string, 0, len(titles)) |