MCPcopy Index your code
hub / github.com/cli/cli / MilestoneToID

Method MilestoneToID

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

Source from the content-addressed store, hash-verified

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