Skip to content

Commit ee68cd9

Browse files
lstahlmanunknwon
authored andcommitted
Add timestamps to repository api response (#34)
Add created_at and updated_at properties to repository api response
1 parent 872cf28 commit ee68cd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

repo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"encoding/json"
1010
"fmt"
1111
"net/http"
12+
"time"
1213
)
1314

1415
// Permission represents a API permission.
@@ -33,6 +34,8 @@ type Repository struct {
3334
Forks int `json:"forks_count"`
3435
Watchers int `json:"watchers_count"`
3536
OpenIssues int `json:"open_issues_count"`
37+
Created time.Time `json:"created_at"`
38+
Updated time.Time `json:"updated_at"`
3639
Permissions Permission `json:"permissions"`
3740
}
3841

0 commit comments

Comments
 (0)