mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 15:13:53 +03:00
Add timestamps to repository api response (#3255)
Additional properties: created_at, updated_at
This commit is contained in:
parent
f4ab50501e
commit
846bf2ca9f
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ func ToRepository(owner *models.User, repo *models.Repository, permission api.Pe
|
|||
Stars: repo.NumStars,
|
||||
Forks: repo.NumForks,
|
||||
Watchers: repo.NumWatches,
|
||||
Created: repo.Created,
|
||||
Updated: repo.Updated,
|
||||
Permissions: permission,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue