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

Method MilestoneToID

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

Source from the content-addressed store, hash-verified

937}
938
939func (m *RepoMetadataResult) MilestoneToID(title string) (string, error) {
940 for _, m := range m.Milestones {
941 if strings.EqualFold(title, m.Title) {
942 return m.ID, nil
943 }
944 }
945 return "", fmt.Errorf("'%s' not found", title)
946}
947
948func (m *RepoMetadataResult) Merge(m2 *RepoMetadataResult) {
949 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