File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1062,6 +1062,7 @@ type PushEventRepository struct {
1062
1062
SSHURL * string `json:"ssh_url,omitempty"`
1063
1063
CloneURL * string `json:"clone_url,omitempty"`
1064
1064
SVNURL * string `json:"svn_url,omitempty"`
1065
+ Topics []string `json:"topics,omitempty"`
1065
1066
}
1066
1067
1067
1068
// PushEventRepoOwner is a basic representation of user/org in a PushEvent payload.
Original file line number Diff line number Diff line change @@ -12271,6 +12271,7 @@ func TestPushEventRepository_Marshal(t *testing.T) {
12271
12271
SSHURL : String ("s" ),
12272
12272
CloneURL : String ("c" ),
12273
12273
SVNURL : String ("s" ),
12274
+ Topics : []string {"octocat" , "api" },
12274
12275
}
12275
12276
12276
12277
want := `{
@@ -12325,8 +12326,9 @@ func TestPushEventRepository_Marshal(t *testing.T) {
12325
12326
"git_url": "g",
12326
12327
"ssh_url": "s",
12327
12328
"clone_url": "c",
12328
- "svn_url": "s"
12329
- }`
12329
+ "svn_url": "s",
12330
+ "topics": ["octocat","api"]
12331
+ }`
12330
12332
12331
12333
testJSONMarshal (t , u , want )
12332
12334
}
You can’t perform that action at this time.
0 commit comments