(title string)
| 941 | } |
| 942 | |
| 943 | func (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 | |
| 952 | func (m *RepoMetadataResult) Merge(m2 *RepoMetadataResult) { |
| 953 | if len(m2.AssignableUsers) > 0 || len(m.AssignableUsers) == 0 { |