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