@@ -1073,6 +1073,86 @@ type InstallationPayload struct {
1073
1073
} `json:"sender"`
1074
1074
}
1075
1075
1076
+ // InstallationRepositoriesPayload contains the information for GitHub's installation_repositories hook events
1077
+ type InstallationRepositoriesPayload struct {
1078
+ Action string `json:"action"`
1079
+ Installation struct {
1080
+ ID int64 `json:"id"`
1081
+ Account struct {
1082
+ Login string `json:"login"`
1083
+ ID int64 `json:"id"`
1084
+ AvatarURL string `json:"avatar_url"`
1085
+ GravatarID string `json:"gravatar_id"`
1086
+ URL string `json:"url"`
1087
+ HTMLURL string `json:"html_url"`
1088
+ FollowersURL string `json:"followers_url"`
1089
+ FollowingURL string `json:"following_url"`
1090
+ GistsURL string `json:"gists_url"`
1091
+ StarredURL string `json:"starred_url"`
1092
+ SubscriptionsURL string `json:"subscriptions_url"`
1093
+ OrganizationsURL string `json:"organizations_url"`
1094
+ ReposURL string `json:"repos_url"`
1095
+ EventsURL string `json:"events_url"`
1096
+ ReceivedEventsURL string `json:"received_events_url"`
1097
+ Type string `json:"type"`
1098
+ SiteAdmin bool `json:"site_admin"`
1099
+ } `json:"account"`
1100
+ RepositorySelection string `json:"repository_selection"`
1101
+ AccessTokensURL string `json:"access_tokens_url"`
1102
+ RepositoriesURL string `json:"repositories_url"`
1103
+ HTMLURL string `json:"html_url"`
1104
+ AppID int `json:"app_id"`
1105
+ TargetID int `json:"target_id"`
1106
+ TargetType string `json:"target_type"`
1107
+ Permissions struct {
1108
+ Issues string `json:"issues"`
1109
+ Metadata string `json:"metadata"`
1110
+ PullRequests string `json:"pull_requests"`
1111
+ RepositoryProjects string `json:"repository_projects"`
1112
+ VulnerabilityAlerts string `json:"vulnerability_alerts"`
1113
+ Statuses string `json:"statuses"`
1114
+ Administration string `json:"administration"`
1115
+ Deployments string `json:"deployments"`
1116
+ Contents string `json:"contents"`
1117
+ } `json:"permissions"`
1118
+ Events []string `json:"events"`
1119
+ CreatedAt int64 `json:"created_at"`
1120
+ UpdatedAt int64 `json:"updated_at"`
1121
+ SingleFileName * string `json:"single_file_name"`
1122
+ } `json:"installation"`
1123
+ RepositoriesAdded []struct {
1124
+ ID int64 `json:"id"`
1125
+ Name string `json:"name"`
1126
+ FullName string `json:"full_name"`
1127
+ Private bool `json:"private"`
1128
+ } `json:"repositories_added"`
1129
+ RepositoriesRemoved []struct {
1130
+ ID int64 `json:"id"`
1131
+ Name string `json:"name"`
1132
+ FullName string `json:"full_name"`
1133
+ Private bool `json:"private"`
1134
+ } `json:"repositories_removed"`
1135
+ Sender struct {
1136
+ Login string `json:"login"`
1137
+ ID int64 `json:"id"`
1138
+ AvatarURL string `json:"avatar_url"`
1139
+ GravatarID string `json:"gravatar_id"`
1140
+ URL string `json:"url"`
1141
+ HTMLURL string `json:"html_url"`
1142
+ FollowersURL string `json:"followers_url"`
1143
+ FollowingURL string `json:"following_url"`
1144
+ GistsURL string `json:"gists_url"`
1145
+ StarredURL string `json:"starred_url"`
1146
+ SubscriptionsURL string `json:"subscriptions_url"`
1147
+ OrganizationsURL string `json:"organizations_url"`
1148
+ ReposURL string `json:"repos_url"`
1149
+ EventsURL string `json:"events_url"`
1150
+ ReceivedEventsURL string `json:"received_events_url"`
1151
+ Type string `json:"type"`
1152
+ SiteAdmin bool `json:"site_admin"`
1153
+ } `json:"sender"`
1154
+ }
1155
+
1076
1156
// IssueCommentPayload contains the information for GitHub's issue_comment hook event
1077
1157
type IssueCommentPayload struct {
1078
1158
Action string `json:"action"`
0 commit comments