From 031b73804c0eb9f73fc5c2adce187c9b4b0db44d Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 21 Feb 2021 15:28:18 +0100 Subject: [PATCH] Fix inline docs for InstallationEvent type --- github/event_types.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/github/event_types.go b/github/event_types.go index 0fa45c7c3c9..72ac53de81a 100644 --- a/github/event_types.go +++ b/github/event_types.go @@ -277,16 +277,18 @@ type TeamChange struct { } `json:"repository,omitempty"` } -// InstallationEvent is triggered when a GitHub App has been installed or uninstalled. +// InstallationEvent is triggered when a GitHub App has been installed, uninstalled, suspend, unsuspended +// or new permissions have been accepted. // The Webhook event name is "installation". // -// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#installationevent +// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#installation type InstallationEvent struct { - // The action that was performed. Can be either "created" or "deleted". + // The action that was performed. Can be either "created", "deleted", "suspend", "unsuspend" or "new_permissions_accepted". Action *string `json:"action,omitempty"` Repositories []*Repository `json:"repositories,omitempty"` Sender *User `json:"sender,omitempty"` Installation *Installation `json:"installation,omitempty"` + // TODO key "requester" is not covered } // InstallationRepositoriesEvent is triggered when a repository is added or