(label string)
| 506 | } |
| 507 | |
| 508 | func (ge *githubExporter) getLabelID(label string) (string, error) { |
| 509 | label = strings.ToLower(label) |
| 510 | for cachedLabel, ID := range ge.cachedLabels { |
| 511 | if label == strings.ToLower(cachedLabel) { |
| 512 | return ID, nil |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | return "", fmt.Errorf("didn't find label id in cache") |
| 517 | } |
| 518 | |
| 519 | // create a new label and return it github id |
| 520 | // NOTE: since createLabel mutation is still in preview mode we use github api v3 to create labels |
no test coverage detected