Skip to content

Commit f22656b

Browse files
committed
Changed date field from int64 to time.Time to fix the parsing error.
1 parent 9c954e2 commit f22656b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

github/payload.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,10 +1587,10 @@ type InstallationPayload struct {
15871587
PullRequests string `json:"pull_requests"`
15881588
RepositoryProjects string `json:"repository_projects"`
15891589
} `json:"permissions"`
1590-
Events []string `json:"events"`
1591-
CreatedAt int64 `json:"created_at"`
1592-
UpdatedAt int64 `json:"updated_at"`
1593-
SingleFileName *string `json:"single_file_name"`
1590+
Events []string `json:"events"`
1591+
CreatedAt time.Time `json:"created_at"`
1592+
UpdatedAt time.Time `json:"updated_at"`
1593+
SingleFileName *string `json:"single_file_name"`
15941594
} `json:"installation"`
15951595
Repositories []struct {
15961596
ID int64 `json:"id"`
@@ -1665,10 +1665,10 @@ type InstallationRepositoriesPayload struct {
16651665
Deployments string `json:"deployments"`
16661666
Contents string `json:"contents"`
16671667
} `json:"permissions"`
1668-
Events []string `json:"events"`
1669-
CreatedAt int64 `json:"created_at"`
1670-
UpdatedAt int64 `json:"updated_at"`
1671-
SingleFileName *string `json:"single_file_name"`
1668+
Events []string `json:"events"`
1669+
CreatedAt time.Time `json:"created_at"`
1670+
UpdatedAt time.Time `json:"updated_at"`
1671+
SingleFileName *string `json:"single_file_name"`
16721672
} `json:"installation"`
16731673
RepositoriesAdded []struct {
16741674
ID int64 `json:"id"`

0 commit comments

Comments
 (0)