MCPcopy Index your code
hub / github.com/git-bug/git-bug / getLabelID

Method getLabelID

bridge/github/export.go:508–517  ·  view source on GitHub ↗
(label string)

Source from the content-addressed store, hash-verified

506}
507
508func (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

Callers 1

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected