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

Method v2ProjectTitleToID

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

Source from the content-addressed store, hash-verified

860}
861
862func (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
872func ProjectTitlesToPaths(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support) ([]string, error) {
873 paths := make([]string, 0, len(titles))

Callers 1

ProjectsTitlesToIDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected