fix: skip a nil label
This commit is contained in:
parent
bf74d45404
commit
300b074f86
|
@ -71,6 +71,9 @@ func convertLabels(labels []*structs.Label) []*github.Label {
|
||||||
}
|
}
|
||||||
var ghLabels []*github.Label
|
var ghLabels []*github.Label
|
||||||
for _, label := range labels {
|
for _, label := range labels {
|
||||||
|
if label == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
ghLabels = append(ghLabels, &github.Label{
|
ghLabels = append(ghLabels, &github.Label{
|
||||||
Name: stringPtr(label.Name),
|
Name: stringPtr(label.Name),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue