From 846bf2ca9fcb4cd8cc85cc189e9f153c04080e5d Mon Sep 17 00:00:00 2001 From: lstahlman Date: Mon, 11 Jul 2016 15:28:51 -0700 Subject: [PATCH] Add timestamps to repository api response (#3255) Additional properties: created_at, updated_at --- routers/api/v1/convert/convert.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go index 0bd22f57625..52f28e7dd5f 100644 --- a/routers/api/v1/convert/convert.go +++ b/routers/api/v1/convert/convert.go @@ -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, } }