Skip to content

Commit ff1b5d4

Browse files
committed
Change new Organizations to just be Org.
This field is inconsistently named throughout this file, but updating the old instances would be a breaking change, so they got left.
1 parent a1669dc commit ff1b5d4

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

github/event_types.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ type DeploymentEvent struct {
203203

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

209209
// DeploymentProtectionRuleEvent represents a deployment protection rule event.
@@ -242,7 +242,7 @@ type DeploymentStatusEvent struct {
242242

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

938938
// PersonalAccessTokenPermissions represents the original or newly requested
@@ -1095,7 +1095,7 @@ type PublicEvent struct {
10951095

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

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

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

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

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

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

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

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

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

14521452
// RepositoryVulnerabilityAlert represents a repository security alert.
@@ -1556,7 +1556,7 @@ type StatusEvent struct {
15561556

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

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

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

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

0 commit comments

Comments
 (0)