forked from forgejo/forgejo
Issue/Pull expose IsLocked Property on API (#11708)
Expose IsLocked Property
This commit is contained in:
parent
7cb1e1f609
commit
dc812f8ba5
5 changed files with 12 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue