From 6d28c026650b67898fd42801d8dfbea7a63a28aa Mon Sep 17 00:00:00 2001 From: Andri Kurnia Date: Sat, 22 May 2021 11:48:40 +0700 Subject: [PATCH] update github project card payload --- github/payload.go | 6 +++--- testdata/github/project-card.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/github/payload.go b/github/payload.go index 35de4be..fae98be 100644 --- a/github/payload.go +++ b/github/payload.go @@ -3023,9 +3023,9 @@ type ProjectCardPayload struct { Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"creator"` - CreatedAt int64 `json:"created_at"` - UpdatedAt int64 `json:"updated_at"` - ContentURL string `json:"content_url"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + ContentURL string `json:"content_url"` } `json:"project_card"` Repository struct { ID int64 `json:"id"` diff --git a/testdata/github/project-card.json b/testdata/github/project-card.json index 1c3608f..d4266d8 100644 --- a/testdata/github/project-card.json +++ b/testdata/github/project-card.json @@ -26,8 +26,8 @@ "type": "User", "site_admin": false }, - "created_at": 1483569391, - "updated_at": 1483569391, + "created_at": "2021-04-22T14:38:41Z", + "updated_at": "2021-04-22T14:38:41Z", "content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2" }, "repository": { @@ -146,4 +146,4 @@ "type": "User", "site_admin": false } -} \ No newline at end of file +}