From 6665e095a8518a650d88d4fd2b261b314fef4a1d Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Wed, 22 Nov 2023 08:04:18 +0100 Subject: [PATCH] Correct Json marshaling for labels of issues Labels for issues should be marshalled to a list of strings instead of single (comma-seperated) string. This is according to https://docs.gitlab.com/ee/api/issues.html (22-11-2023) --- issues.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/issues.go b/issues.go index 42478c9f9..14a9e9b6d 100644 --- a/issues.go +++ b/issues.go @@ -175,7 +175,7 @@ func (l *Labels) MarshalJSON() ([]byte, error) { if *l == nil { return []byte(`null`), nil } - return json.Marshal(strings.Join(*l, ",")) + return json.Marshal(*l) } // UnmarshalJSON implements the json.Unmarshaler interface.