Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GitHub] fix: add topics to RepositoryPayload #198

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -5458,9 +5458,21 @@ 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"`
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"`
Expand Down Expand Up @@ -5659,7 +5671,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 {
Expand Down Expand Up @@ -5758,6 +5770,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"`
Expand Down
Loading