fix: skip a nil label

This commit is contained in:
Derrick Hammer 2024-02-11 05:23:51 -05:00
parent bf74d45404
commit 300b074f86
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ func convertLabels(labels []*structs.Label) []*github.Label {
}
var ghLabels []*github.Label
for _, label := range labels {
if label == nil {
continue
}
ghLabels = append(ghLabels, &github.Label{
Name: stringPtr(label.Name),
})