Skip to content

Commit

Permalink
Change new Organizations to just be Org.
Browse files Browse the repository at this point in the history
This field is inconsistently named throughout this file, but
updating the old instances would be a breaking change, so they got left.
  • Loading branch information
billnapier committed Oct 3, 2023
1 parent a1669dc commit ff1b5d4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ type DeploymentEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// DeploymentProtectionRuleEvent represents a deployment protection rule event.
Expand Down Expand Up @@ -242,7 +242,7 @@ type DeploymentStatusEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// DiscussionCommentEvent represents a webhook event for a comment on discussion.
Expand Down Expand Up @@ -382,7 +382,7 @@ type GollumEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// EditChange represents the changes when an issue, pull request, comment,
Expand Down Expand Up @@ -533,7 +533,7 @@ type InstallationEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// InstallationRepositoriesEvent is triggered when a repository is added or
Expand All @@ -551,7 +551,7 @@ type InstallationRepositoriesEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// InstallationLoginChange represents a change in login on an installation.
Expand Down Expand Up @@ -634,7 +634,7 @@ type IssuesEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// LabelEvent is triggered when a repository's label is created, edited, or deleted.
Expand Down Expand Up @@ -674,7 +674,7 @@ type MarketplacePurchaseEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// MemberEvent is triggered when a user is added as a collaborator to a repository.
Expand All @@ -693,7 +693,7 @@ type MemberEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// MembershipEvent is triggered when a user is added or removed from a team.
Expand Down Expand Up @@ -868,7 +868,7 @@ type PageBuildEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// PersonalAccessTokenRequestEvent occurs when there is activity relating to a
Expand Down Expand Up @@ -932,7 +932,7 @@ type PersonalAccessTokenRequest struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// PersonalAccessTokenPermissions represents the original or newly requested
Expand Down Expand Up @@ -1095,7 +1095,7 @@ type PublicEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// PullRequestEvent is triggered when a pull request is assigned, unassigned, labeled,
Expand Down Expand Up @@ -1181,7 +1181,7 @@ type PullRequestReviewCommentEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// PullRequestReviewThreadEvent is triggered when a comment made as part of a
Expand All @@ -1203,7 +1203,7 @@ type PullRequestReviewThreadEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// PullRequestTargetEvent is triggered when a pull request is assigned, unassigned, labeled,
Expand Down Expand Up @@ -1372,7 +1372,7 @@ type ReleaseEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// RepositoryEvent is triggered when a repository is created, archived, unarchived,
Expand Down Expand Up @@ -1446,7 +1446,7 @@ type RepositoryVulnerabilityAlertEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// RepositoryVulnerabilityAlert represents a repository security alert.
Expand Down Expand Up @@ -1556,7 +1556,7 @@ type StatusEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// TeamEvent is triggered when an organization's team is created, modified or deleted.
Expand Down Expand Up @@ -1630,7 +1630,7 @@ type WatchEvent struct {

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Organization *Organization `json:"organization,omitempty"`
Org *Organization `json:"organization,omitempty"`
}

// WorkflowDispatchEvent is triggered when someone triggers a workflow run on GitHub or
Expand Down

0 comments on commit ff1b5d4

Please sign in to comment.