Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00

Add timestamps to repository api response (#3255)

Additional properties: created_at, updated_at
This commit is contained in:
lstahlman 2016-07-11 15:28:51 -07:00 committed by 无闻
parent f4ab50501e
commit 846bf2ca9f

View file

@ -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,
}
}