diff --git a/api/convert.go b/api/convert.go index 53c3df4..f2f5da0 100644 --- a/api/convert.go +++ b/api/convert.go @@ -178,6 +178,19 @@ func convertChanges(changes *structs.ChangesPayload) *github.EditChange { } } +func convertLabel(label *structs.Label) *github.Label { + if label == nil { + return &github.Label{} + } + return &github.Label{ + ID: int64Ptr(label.ID), + Name: stringPtr(label.Name), + Color: stringPtr(label.Color), + Description: stringPtr(label.Description), + URL: stringPtr(label.URL), + } +} + func translatePrAction(action structs.HookIssueAction) string { translatedAction := ""