MCPcopy Create free account
hub / github.com/cli/cli / v2ProjectTitleToID

Method v2ProjectTitleToID

api/queries_repo.go:865–873  ·  view source on GitHub ↗
(title string)

Source from the content-addressed store, hash-verified

863}
864
865func (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
875func ProjectTitlesToPaths(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support) ([]string, error) {
876 paths := make([]string, 0, len(titles))

Callers 1

ProjectsTitlesToIDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected