fix: issue labels are not set after deleting one label

Because issue.isLabelsLoaded = false is missing, LoadLabels is a noop
and the issue.Labels is nil.
This commit is contained in:
Earl Warren 2024-11-07 10:38:01 +01:00
parent c801838690
commit db899c19d8
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -205,6 +205,7 @@ func DeleteIssueLabel(ctx context.Context, issue *Issue, label *Label, doer *use
return err return err
} }
issue.isLabelsLoaded = false
issue.Labels = nil issue.Labels = nil
return issue.LoadLabels(ctx) return issue.LoadLabels(ctx)
} }