From 4b02eeed80f09548427b0ea901f69a3c95be4072 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Wed, 28 Aug 2024 21:44:38 -0700 Subject: [PATCH 1/4] fix: added topics to RepositoryPayload --- github/payload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/github/payload.go b/github/payload.go index 2f1cc84..83e78bf 100644 --- a/github/payload.go +++ b/github/payload.go @@ -5758,6 +5758,7 @@ type RepositoryPayload struct { OpenIssues int64 `json:"open_issues"` Watchers int64 `json:"watchers"` DefaultBranch string `json:"default_branch"` + Topics []string `json:"topics"` } `json:"repository"` Organization struct { Login string `json:"login"` From ed5fab0e3dc870d79653c858442c0bec163c524d Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Wed, 28 Aug 2024 23:32:00 -0700 Subject: [PATCH 2/4] fix repositoryPayload chanes.topics.from to string array type --- github/payload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/payload.go b/github/payload.go index 83e78bf..0bcca5b 100644 --- a/github/payload.go +++ b/github/payload.go @@ -5659,7 +5659,7 @@ type RepositoryPayload struct { From string `json:"from"` } `json:"homepage,omitempty"` Topics struct { - From string `json:"from,omitempty"` + From []string `json:"from,omitempty"` } `json:"topics,omitempty"` Repository struct { Name struct { From 6d993d9dae78574ca0fde22d1a41a927e4738b63 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Wed, 4 Sep 2024 15:04:05 -0700 Subject: [PATCH 3/4] Update payload.go --- github/payload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/github/payload.go b/github/payload.go index 0bcca5b..66130d0 100644 --- a/github/payload.go +++ b/github/payload.go @@ -5458,6 +5458,7 @@ type PushPayload struct { OpenIssues int64 `json:"open_issues"` Watchers int64 `json:"watchers"` DefaultBranch string `json:"default_branch"` + Topics []string `json:"topics"` Stargazers int64 `json:"stargazers"` MasterBranch string `json:"master_branch"` } `json:"repository"` From 2f2e3ecd10a66915338f11e27f9058f39a65edc3 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Wed, 4 Sep 2024 15:32:55 -0700 Subject: [PATCH 4/4] Update payload.go --- github/payload.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/github/payload.go b/github/payload.go index 66130d0..d0aaecb 100644 --- a/github/payload.go +++ b/github/payload.go @@ -5462,6 +5462,17 @@ type PushPayload struct { Stargazers int64 `json:"stargazers"` MasterBranch string `json:"master_branch"` } `json:"repository"` + Organization struct { + Login string `json:"login"` + ID int64 `json:"id"` + NodeID string `json:"node_id"` + URL string `json:"url"` + ReposURL string `json:"repos_url"` + EventsURL string `json:"events_url"` + MembersURL string `json:"members_url"` + PublicMembersURL string `json:"public_members_url"` + AvatarURL string `json:"avatar_url"` + } `json:"organization"` Pusher struct { Name string `json:"name"` Email string `json:"email"`