diff --git a/github/event_types.go b/github/event_types.go index 598d98d48c3..71dfd2d0a02 100644 --- a/github/event_types.go +++ b/github/event_types.go @@ -1062,6 +1062,7 @@ type PushEventRepository struct { SSHURL *string `json:"ssh_url,omitempty"` CloneURL *string `json:"clone_url,omitempty"` SVNURL *string `json:"svn_url,omitempty"` + Topics []string `json:"topics,omitempty"` } // PushEventRepoOwner is a basic representation of user/org in a PushEvent payload. diff --git a/github/event_types_test.go b/github/event_types_test.go index 7c84146f460..a2628b85378 100644 --- a/github/event_types_test.go +++ b/github/event_types_test.go @@ -12271,6 +12271,7 @@ func TestPushEventRepository_Marshal(t *testing.T) { SSHURL: String("s"), CloneURL: String("c"), SVNURL: String("s"), + Topics: []string{"octocat", "api"}, } want := `{ @@ -12325,8 +12326,9 @@ func TestPushEventRepository_Marshal(t *testing.T) { "git_url": "g", "ssh_url": "s", "clone_url": "c", - "svn_url": "s" - }` + "svn_url": "s", + "topics": ["octocat","api"] + }` testJSONMarshal(t, u, want) }