Skip to content

Commit 4ee4acf

Browse files
author
Dean Karn
authored
Merge pull request #65 from hatstand/add-repo-and-send-to-ping
Add repository and sender to ping event
2 parents 8856cf3 + d9474f4 commit 4ee4acf

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
@@ -2630,6 +2630,112 @@ type PingPayload struct {
26302630
CreatedAt time.Time `json:"created_at"`
26312631
UpdatedAt time.Time `json:"updated_at"`
26322632
} `json:"hook"`
2633+
Repository struct {
2634+
ID int64 `json:"id"`
2635+
Name string `json:"name"`
2636+
FullName string `json:"full_name"`
2637+
Owner struct {
2638+
Login string `json:"login"`
2639+
ID int64 `json:"id"`
2640+
AvatarURL string `json:"avatar_url"`
2641+
GravatarID string `json:"gravatar_id"`
2642+
URL string `json:"url"`
2643+
HTMLURL string `json:"html_url"`
2644+
FollowersURL string `json:"followers_url"`
2645+
FollowingURL string `json:"following_url"`
2646+
GistsURL string `json:"gists_url"`
2647+
StarredURL string `json:"starred_url"`
2648+
SubscriptionsURL string `json:"subscriptions_url"`
2649+
OrganizationsURL string `json:"organizations_url"`
2650+
ReposURL string `json:"repos_url"`
2651+
EventsURL string `json:"events_url"`
2652+
ReceivedEventsURL string `json:"received_events_url"`
2653+
Type string `json:"type"`
2654+
SiteAdmin bool `json:"site_admin"`
2655+
} `json:"owner"`
2656+
Private bool `json:"private"`
2657+
HTMLURL string `json:"html_url"`
2658+
Description string `json:"description"`
2659+
Fork bool `json:"fork"`
2660+
URL string `json:"url"`
2661+
ForksURL string `json:"forks_url"`
2662+
KeysURL string `json:"keys_url"`
2663+
CollaboratorsURL string `json:"collaborators_url"`
2664+
TeamsURL string `json:"teams_url"`
2665+
HooksURL string `json:"hooks_url"`
2666+
IssueEventsURL string `json:"issue_events_url"`
2667+
EventsURL string `json:"events_url"`
2668+
AssigneesURL string `json:"assignees_url"`
2669+
BranchesURL string `json:"branches_url"`
2670+
TagsURL string `json:"tags_url"`
2671+
BlobsURL string `json:"blobs_url"`
2672+
GitTagsURL string `json:"git_tags_url"`
2673+
GitRefsURL string `json:"git_refs_url"`
2674+
TreesURL string `json:"trees_url"`
2675+
StatusesURL string `json:"statuses_url"`
2676+
LanguagesURL string `json:"languages_url"`
2677+
StargazersURL string `json:"stargazers_url"`
2678+
ContributorsURL string `json:"contributors_url"`
2679+
SubscribersURL string `json:"subscribers_url"`
2680+
SubscriptionURL string `json:"subscription_url"`
2681+
CommitsURL string `json:"commits_url"`
2682+
GitCommitsURL string `json:"git_commits_url"`
2683+
CommentsURL string `json:"comments_url"`
2684+
IssueCommentURL string `json:"issue_comment_url"`
2685+
ContentsURL string `json:"contents_url"`
2686+
CompareURL string `json:"compare_url"`
2687+
MergesURL string `json:"merges_url"`
2688+
ArchiveURL string `json:"archive_url"`
2689+
DownloadsURL string `json:"downloads_url"`
2690+
IssuesURL string `json:"issues_url"`
2691+
PullsURL string `json:"pulls_url"`
2692+
MilestonesURL string `json:"milestones_url"`
2693+
NotificationsURL string `json:"notifications_url"`
2694+
LabelsURL string `json:"labels_url"`
2695+
ReleasesURL string `json:"releases_url"`
2696+
CreatedAt time.Time `json:"created_at"`
2697+
UpdatedAt time.Time `json:"updated_at"`
2698+
PushedAt time.Time `json:"pushed_at"`
2699+
GitURL string `json:"git_url"`
2700+
SSHURL string `json:"ssh_url"`
2701+
CloneURL string `json:"clone_url"`
2702+
SvnURL string `json:"svn_url"`
2703+
Homepage *string `json:"homepage"`
2704+
Size int64 `json:"size"`
2705+
StargazersCount int64 `json:"stargazers_count"`
2706+
WatchersCount int64 `json:"watchers_count"`
2707+
Language *string `json:"language"`
2708+
HasIssues bool `json:"has_issues"`
2709+
HasDownloads bool `json:"has_downloads"`
2710+
HasWiki bool `json:"has_wiki"`
2711+
HasPages bool `json:"has_pages"`
2712+
ForksCount int64 `json:"forks_count"`
2713+
MirrorURL *string `json:"mirror_url"`
2714+
OpenIssuesCount int64 `json:"open_issues_count"`
2715+
Forks int64 `json:"forks"`
2716+
OpenIssues int64 `json:"open_issues"`
2717+
Watchers int64 `json:"watchers"`
2718+
DefaultBranch string `json:"default_branch"`
2719+
} `json:"repository"`
2720+
Sender struct {
2721+
Login string `json:"login"`
2722+
ID int64 `json:"id"`
2723+
AvatarURL string `json:"avatar_url"`
2724+
GravatarID string `json:"gravatar_id"`
2725+
URL string `json:"url"`
2726+
HTMLURL string `json:"html_url"`
2727+
FollowersURL string `json:"followers_url"`
2728+
FollowingURL string `json:"following_url"`
2729+
GistsURL string `json:"gists_url"`
2730+
StarredURL string `json:"starred_url"`
2731+
SubscriptionsURL string `json:"subscriptions_url"`
2732+
OrganizationsURL string `json:"organizations_url"`
2733+
ReposURL string `json:"repos_url"`
2734+
EventsURL string `json:"events_url"`
2735+
ReceivedEventsURL string `json:"received_events_url"`
2736+
Type string `json:"type"`
2737+
SiteAdmin bool `json:"site_admin"`
2738+
} `json:"sender"`
26332739
}
26342740

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

0 commit comments

Comments
 (0)