mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add timestamps to repository api response (#3255)
Additional properties: created_at, updated_at
This commit is contained in:
		@@ -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,
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user