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