From 300b074f86d94d0768e904bad2c9b93141dbc763 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 05:23:51 -0500 Subject: [PATCH] fix: skip a nil label --- api/convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/convert.go b/api/convert.go index f2f5da0..dfe1b11 100644 --- a/api/convert.go +++ b/api/convert.go @@ -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), })