Skip to content

Commit d9474f4

Browse files
committed
Add repository and sender to ping event
1 parent a1051fd commit d9474f4

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

github/payload.go

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,112 @@ type PingPayload struct {
22632263
CreatedAt time.Time `json:"created_at"`
22642264
UpdatedAt time.Time `json:"updated_at"`
22652265
} `json:"hook"`
2266+
Repository struct {
2267+
ID int64 `json:"id"`
2268+
Name string `json:"name"`
2269+
FullName string `json:"full_name"`
2270+
Owner struct {
2271+
Login string `json:"login"`
2272+
ID int64 `json:"id"`
2273+
AvatarURL string `json:"avatar_url"`
2274+
GravatarID string `json:"gravatar_id"`
2275+
URL string `json:"url"`
2276+
HTMLURL string `json:"html_url"`
2277+
FollowersURL string `json:"followers_url"`
2278+
FollowingURL string `json:"following_url"`
2279+
GistsURL string `json:"gists_url"`
2280+
StarredURL string `json:"starred_url"`
2281+
SubscriptionsURL string `json:"subscriptions_url"`
2282+
OrganizationsURL string `json:"organizations_url"`
2283+
ReposURL string `json:"repos_url"`
2284+
EventsURL string `json:"events_url"`
2285+
ReceivedEventsURL string `json:"received_events_url"`
2286+
Type string `json:"type"`
2287+
SiteAdmin bool `json:"site_admin"`
2288+
} `json:"owner"`
2289+
Private bool `json:"private"`
2290+
HTMLURL string `json:"html_url"`
2291+
Description string `json:"description"`
2292+
Fork bool `json:"fork"`
2293+
URL string `json:"url"`
2294+
ForksURL string `json:"forks_url"`
2295+
KeysURL string `json:"keys_url"`
2296+
CollaboratorsURL string `json:"collaborators_url"`
2297+
TeamsURL string `json:"teams_url"`
2298+
HooksURL string `json:"hooks_url"`
2299+
IssueEventsURL string `json:"issue_events_url"`
2300+
EventsURL string `json:"events_url"`
2301+
AssigneesURL string `json:"assignees_url"`
2302+
BranchesURL string `json:"branches_url"`
2303+
TagsURL string `json:"tags_url"`
2304+
BlobsURL string `json:"blobs_url"`
2305+
GitTagsURL string `json:"git_tags_url"`
2306+
GitRefsURL string `json:"git_refs_url"`
2307+
TreesURL string `json:"trees_url"`
2308+
StatusesURL string `json:"statuses_url"`
2309+
LanguagesURL string `json:"languages_url"`
2310+
StargazersURL string `json:"stargazers_url"`
2311+
ContributorsURL string `json:"contributors_url"`
2312+
SubscribersURL string `json:"subscribers_url"`
2313+
SubscriptionURL string `json:"subscription_url"`
2314+
CommitsURL string `json:"commits_url"`
2315+
GitCommitsURL string `json:"git_commits_url"`
2316+
CommentsURL string `json:"comments_url"`
2317+
IssueCommentURL string `json:"issue_comment_url"`
2318+
ContentsURL string `json:"contents_url"`
2319+
CompareURL string `json:"compare_url"`
2320+
MergesURL string `json:"merges_url"`
2321+
ArchiveURL string `json:"archive_url"`
2322+
DownloadsURL string `json:"downloads_url"`
2323+
IssuesURL string `json:"issues_url"`
2324+
PullsURL string `json:"pulls_url"`
2325+
MilestonesURL string `json:"milestones_url"`
2326+
NotificationsURL string `json:"notifications_url"`
2327+
LabelsURL string `json:"labels_url"`
2328+
ReleasesURL string `json:"releases_url"`
2329+
CreatedAt time.Time `json:"created_at"`
2330+
UpdatedAt time.Time `json:"updated_at"`
2331+
PushedAt time.Time `json:"pushed_at"`
2332+
GitURL string `json:"git_url"`
2333+
SSHURL string `json:"ssh_url"`
2334+
CloneURL string `json:"clone_url"`
2335+
SvnURL string `json:"svn_url"`
2336+
Homepage *string `json:"homepage"`
2337+
Size int64 `json:"size"`
2338+
StargazersCount int64 `json:"stargazers_count"`
2339+
WatchersCount int64 `json:"watchers_count"`
2340+
Language *string `json:"language"`
2341+
HasIssues bool `json:"has_issues"`
2342+
HasDownloads bool `json:"has_downloads"`
2343+
HasWiki bool `json:"has_wiki"`
2344+
HasPages bool `json:"has_pages"`
2345+
ForksCount int64 `json:"forks_count"`
2346+
MirrorURL *string `json:"mirror_url"`
2347+
OpenIssuesCount int64 `json:"open_issues_count"`
2348+
Forks int64 `json:"forks"`
2349+
OpenIssues int64 `json:"open_issues"`
2350+
Watchers int64 `json:"watchers"`
2351+
DefaultBranch string `json:"default_branch"`
2352+
} `json:"repository"`
2353+
Sender struct {
2354+
Login string `json:"login"`
2355+
ID int64 `json:"id"`
2356+
AvatarURL string `json:"avatar_url"`
2357+
GravatarID string `json:"gravatar_id"`
2358+
URL string `json:"url"`
2359+
HTMLURL string `json:"html_url"`
2360+
FollowersURL string `json:"followers_url"`
2361+
FollowingURL string `json:"following_url"`
2362+
GistsURL string `json:"gists_url"`
2363+
StarredURL string `json:"starred_url"`
2364+
SubscriptionsURL string `json:"subscriptions_url"`
2365+
OrganizationsURL string `json:"organizations_url"`
2366+
ReposURL string `json:"repos_url"`
2367+
EventsURL string `json:"events_url"`
2368+
ReceivedEventsURL string `json:"received_events_url"`
2369+
Type string `json:"type"`
2370+
SiteAdmin bool `json:"site_admin"`
2371+
} `json:"sender"`
22662372
}
22672373

22682374
// ProjectCardPayload contains the information for GitHub's project_payload hook event

0 commit comments

Comments
 (0)