Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Correct Json marshaling for labels of issues
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
tkschmidt committed Nov 22, 2023
1 parent 3e35f87 commit 6665e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6665e09

Please sign in to comment.