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

Method v2ProjectTitleToID

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

Source from the content-addressed store, hash-verified

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

Callers 1

ProjectsTitlesToIDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected