Issue/Pull expose IsLocked Property on API (#11708)

Expose IsLocked Property
This commit is contained in:
6543
2020-06-01 23:01:55 +02:00
committed by GitHub
parent 7cb1e1f609
commit dc812f8ba5
5 changed files with 12 additions and 0 deletions

View File

@ -36,6 +36,7 @@ func ToAPIIssue(issue *models.Issue) *api.Issue {
Body: issue.Content,
Labels: ToLabelList(issue.Labels),
State: issue.State(),
IsLocked: issue.IsLocked,
Comments: issue.NumComments,
Created: issue.CreatedUnix.AsTime(),
Updated: issue.UpdatedUnix.AsTime(),