Skip to content

Commit 253efbc

Browse files
adelowozeripath
authored andcommitted
Make sure labels are actually returned (#6053) (#6059)
1 parent c8f061e commit 253efbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routers/api/v1/repo/issue_label.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ func ListIssueLabels(ctx *context.APIContext) {
5151
return
5252
}
5353

54+
if err := issue.LoadAttributes(); err != nil {
55+
ctx.Error(500, "LoadAttributes", err)
56+
return
57+
}
58+
5459
apiLabels := make([]*api.Label, len(issue.Labels))
5560
for i := range issue.Labels {
5661
apiLabels[i] = issue.Labels[i].APIFormat()

0 commit comments

Comments
 (0)