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

Method MilestoneToID

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

Source from the content-addressed store, hash-verified

941}
942
943func (m *RepoMetadataResult) MilestoneToID(title string) (string, error) {
944 for _, m := range m.Milestones {
945 if strings.EqualFold(title, m.Title) {
946 return m.ID, nil
947 }
948 }
949 return "", fmt.Errorf("'%s' not found", title)
950}
951
952func (m *RepoMetadataResult) Merge(m2 *RepoMetadataResult) {
953 if len(m2.AssignableUsers) > 0 || len(m.AssignableUsers) == 0 {

Callers 3

AddMetadataToIssueParamsFunction · 0.80
MilestoneIdMethod · 0.80
Test_RepoMetadataFunction · 0.80

Calls 1

ErrorfMethod · 0.65

Tested by 1

Test_RepoMetadataFunction · 0.64