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