Add timestamps to repository api response (#34)

Add created_at and updated_at properties to repository api response
This commit is contained in:
lstahlman 2016-07-11 14:02:42 -07:00 committed by 无闻
parent 872cf281aa
commit ee68cd9eef

View file

@ -9,6 +9,7 @@ import (
"encoding/json"
"fmt"
"net/http"
"time"
)
// Permission represents a API permission.
@ -33,6 +34,8 @@ type Repository struct {
Forks int `json:"forks_count"`
Watchers int `json:"watchers_count"`
OpenIssues int `json:"open_issues_count"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`
Permissions Permission `json:"permissions"`
}