Skip to content

Commit 5944538

Browse files
authored
Merge 031b738 into 6e07450
2 parents 6e07450 + 031b738 commit 5944538

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

github/event_types.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,18 @@ type TeamChange struct {
277277
} `json:"repository,omitempty"`
278278
}
279279

280-
// InstallationEvent is triggered when a GitHub App has been installed or uninstalled.
280+
// InstallationEvent is triggered when a GitHub App has been installed, uninstalled, suspend, unsuspended
281+
// or new permissions have been accepted.
281282
// The Webhook event name is "installation".
282283
//
283-
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#installationevent
284+
// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#installation
284285
type InstallationEvent struct {
285-
// The action that was performed. Can be either "created" or "deleted".
286+
// The action that was performed. Can be either "created", "deleted", "suspend", "unsuspend" or "new_permissions_accepted".
286287
Action *string `json:"action,omitempty"`
287288
Repositories []*Repository `json:"repositories,omitempty"`
288289
Sender *User `json:"sender,omitempty"`
289290
Installation *Installation `json:"installation,omitempty"`
291+
// TODO key "requester" is not covered
290292
}
291293

292294
// InstallationRepositoriesEvent is triggered when a repository is added or

0 commit comments

Comments
 (0)