(title string)
| 932 | } |
| 933 | |
| 934 | func (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 | |
| 943 | func (m *RepoMetadataResult) Merge(m2 *RepoMetadataResult) { |
| 944 | if len(m2.AssignableUsers) > 0 || len(m.AssignableUsers) == 0 { |