Repository navigation
Rename GitHub Apps installation and installation_repositories events. #655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,28 +187,27 @@ type TeamChange struct { | |
| } `json:"repository,omitempty"` | ||
| } | ||
|
|
||
| // IntegrationInstallationEvent is triggered when an integration is created or deleted. | ||
| // The Webhook event name is "integration_installation". | ||
| // InstallationEvent is triggered when a GitHub App has been installed or uninstalled. | ||
| // The Webhook event name is "installation". | ||
| // | ||
| // GitHub API docs: https://developer.github.com/early-access/integrations/webhooks/#integrationinstallationevent | ||
| type IntegrationInstallationEvent struct { | ||
| // The action that was performed. Possible values for an "integration_installation" | ||
| // event are: "created", "deleted". | ||
| // GitHub API docs: https://developer.github.com/v3/activity/events/types/#installationevent | ||
| type InstallationEvent struct { | ||
| // The action that was performed. Can be either "created" or "deleted". | ||
| Action *string `json:"action,omitempty"` | ||
| Sender *User `json:"sender,omitempty"` | ||
| Installation *Installation `json:"installation,omitempty"` | ||
| } | ||
|
|
||
| // IntegrationInstallationRepositoriesEvent is triggered when an integration repository | ||
| // is added or removed. The Webhook event name is "integration_installation_repositories". | ||
| // InstallationRepositoriesEvent is triggered when a repository is added or | ||
| // removed from an installation. The Webhook event name is "installation_repositories". | ||
| // | ||
| // GitHub API docs: https://developer.github.com/early-access/integrations/webhooks/#integrationinstallationrepositoriesevent | ||
| type IntegrationInstallationRepositoriesEvent struct { | ||
| // The action that was performed. Possible values for an "integration_installation_repositories" | ||
| // event are: "added", "removed". | ||
| // GitHub API docs: https://developer.github.com/v3/activity/events/types/#installationrepositoriesevent | ||
| type InstallationRepositoriesEvent struct { | ||
| // The action that was performed. Can be either "added" or "removed". | ||
| Action *string `json:"action,omitempty"` | ||
| RepositoriesAdded []*Repository `json:"repositories_added,omitempty"` | ||
| RepositoriesRemoved []*Repository `json:"repositories_removed,omitempty"` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This struct is missing |
||
| RepositorySelection *string `json:"repository_selection,omitempty"` | ||
| Sender *User `json:"sender,omitempty"` | ||
| Installation *Installation `json:"installation,omitempty"` | ||
| } | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shurcooL do you want me to remove these field comments? They duplicate the GitHub API and it's only a comment for a single field, yet the GitHub API have docs for other fields. So either these should be removed or all of the fields should have the docs duplicated IMHO - is there another reason they are there?
Just the field comments, not the struct comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, keep them, they're helpful and appreciated (as long as they're accurate, and I've checked, they are).