Skip to content

Commit 8054534

Browse files
authored
Merge pull request #1152 from php-api-clients/GitHub/from-1.1.4-627e7866ca107dff7a8236c103eb53a4-from-1.1.4-627e7866ca107dff7a8236c103eb53a4
2 parents 1c5b8f1 + 692ce61 commit 8054534

File tree

80 files changed

+40919
-43042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+40919
-43042
lines changed

Diff for: clients/GitHub/etc/openapi-client-generator.state

+98-98
Large diffs are not rendered by default.

Diff for: clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php

+2,818-4,400
Large diffs are not rendered by default.

Diff for: clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php

+18-33
Original file line numberDiff line numberDiff line change
@@ -20413,7 +20413,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
2041320413
$value = $payload['locked'] ?? null;
2041420414

2041520415
if ($value === null) {
20416-
$properties['locked'] = null;
20416+
$missingFields[] = 'locked';
2041720417
goto after_locked;
2041820418
}
2041920419

@@ -35070,7 +35070,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
3507035070
$value = $payload['state'] ?? null;
3507135071

3507235072
if ($value === null) {
35073-
$properties['state'] = null;
35073+
$missingFields[] = 'state';
3507435074
goto after_state;
3507535075
}
3507635076

@@ -49235,7 +49235,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4923549235
if (is_array($value)) {
4923649236
try {
4923749237
$this->hydrationStack[] = 'assignee';
49238-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️Assignee($value);
49238+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Assignee($value);
4923949239
} finally {
4924049240
array_pop($this->hydrationStack);
4924149241
}
@@ -49391,7 +49391,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4939149391
$value = $payload['locked'] ?? null;
4939249392

4939349393
if ($value === null) {
49394-
$properties['locked'] = null;
49394+
$missingFields[] = 'locked';
4939549395
goto after_locked;
4939649396
}
4939749397

@@ -49409,7 +49409,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4940949409
if (is_array($value)) {
4941049410
try {
4941149411
$this->hydrationStack[] = 'milestone';
49412-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️Milestone($value);
49412+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Milestone($value);
4941349413
} finally {
4941449414
array_pop($this->hydrationStack);
4941549415
}
@@ -49451,7 +49451,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4945149451
if (is_array($value)) {
4945249452
try {
4945349453
$this->hydrationStack[] = 'performedViaGithubApp';
49454-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️PerformedViaGithubApp($value);
49454+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PerformedViaGithubApp($value);
4945549455
} finally {
4945649456
array_pop($this->hydrationStack);
4945749457
}
@@ -49471,7 +49471,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4947149471
if (is_array($value)) {
4947249472
try {
4947349473
$this->hydrationStack[] = 'pullRequest';
49474-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️PullRequest($value);
49474+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PullRequest($value);
4947549475
} finally {
4947649476
array_pop($this->hydrationStack);
4947749477
}
@@ -49491,7 +49491,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4949149491
if (is_array($value)) {
4949249492
try {
4949349493
$this->hydrationStack[] = 'reactions';
49494-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️Reactions($value);
49494+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Reactions($value);
4949549495
} finally {
4949649496
array_pop($this->hydrationStack);
4949749497
}
@@ -49588,7 +49588,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
4958849588
if (is_array($value)) {
4958949589
try {
4959049590
$this->hydrationStack[] = 'user';
49591-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️User($value);
49591+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($value);
4959249592
} finally {
4959349593
array_pop($this->hydrationStack);
4959449594
}
@@ -68343,12 +68343,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
6834368343
$labelsUrl = $object->labelsUrl;
6834468344
after_labelsUrl: $result['labels_url'] = $labelsUrl;
6834568345

68346-
$locked = $object->locked;
68347-
68348-
if ($locked === null) {
68349-
goto after_locked;
68350-
}
68351-
68346+
$locked = $object->locked;
6835268347
after_locked: $result['locked'] = $locked;
6835368348

6835468349
$milestone = $object->milestone;
@@ -76515,12 +76510,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
7651576510
$repositoryUrl = $object->repositoryUrl;
7651676511
after_repositoryUrl: $result['repository_url'] = $repositoryUrl;
7651776512

76518-
$state = $object->state;
76519-
76520-
if ($state === null) {
76521-
goto after_state;
76522-
}
76523-
76513+
$state = $object->state;
7652476514
after_state: $result['state'] = $state;
7652576515

7652676516
$stateReason = $object->stateReason;
@@ -84471,7 +84461,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
8447184461
goto after_assignee;
8447284462
}
8447384463

84474-
$assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️Assignee($assignee);
84464+
$assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Assignee($assignee);
8447584465
after_assignee: $result['assignee'] = $assignee;
8447684466

8447784467
$assignees = $object->assignees;
@@ -84547,12 +84537,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
8454784537
$labelsUrl = $object->labelsUrl;
8454884538
after_labelsUrl: $result['labels_url'] = $labelsUrl;
8454984539

84550-
$locked = $object->locked;
84551-
84552-
if ($locked === null) {
84553-
goto after_locked;
84554-
}
84555-
84540+
$locked = $object->locked;
8455684541
after_locked: $result['locked'] = $locked;
8455784542

8455884543
$milestone = $object->milestone;
@@ -84561,7 +84546,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
8456184546
goto after_milestone;
8456284547
}
8456384548

84564-
$milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️Milestone($milestone);
84549+
$milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Milestone($milestone);
8456584550
after_milestone: $result['milestone'] = $milestone;
8456684551

8456784552
$nodeId = $object->nodeId;
@@ -84576,7 +84561,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
8457684561
goto after_performedViaGithubApp;
8457784562
}
8457884563

84579-
$performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️PerformedViaGithubApp($performedViaGithubApp);
84564+
$performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PerformedViaGithubApp($performedViaGithubApp);
8458084565
after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp;
8458184566

8458284567
$pullRequest = $object->pullRequest;
@@ -84585,11 +84570,11 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
8458584570
goto after_pullRequest;
8458684571
}
8458784572

84588-
$pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️PullRequest($pullRequest);
84573+
$pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PullRequest($pullRequest);
8458984574
after_pullRequest: $result['pull_request'] = $pullRequest;
8459084575

8459184576
$reactions = $object->reactions;
84592-
$reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️Reactions($reactions);
84577+
$reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Reactions($reactions);
8459384578
after_reactions: $result['reactions'] = $reactions;
8459484579

8459584580
$repositoryUrl = $object->repositoryUrl;
@@ -84634,7 +84619,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
8463484619
goto after_user;
8463584620
}
8463684621

84637-
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned⚡️Issue⚡️User($user);
84622+
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($user);
8463884623
after_user: $result['user'] = $user;
8463984624

8464084625
return $result;

Diff for: clients/GitHub/src/Internal/Hydrator/WebHook/MarketplacePurchase.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -5635,7 +5635,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
56355635
if (is_array($value)) {
56365636
try {
56375637
$this->hydrationStack[] = 'account';
5638-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️MarketplacePurchase⚡️Account($value);
5638+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase⚡️Account($value);
56395639
} finally {
56405640
array_pop($this->hydrationStack);
56415641
}
@@ -5699,7 +5699,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
56995699
if (is_array($value)) {
57005700
try {
57015701
$this->hydrationStack[] = 'plan';
5702-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️MarketplacePurchase⚡️Plan($value);
5702+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase⚡️Plan($value);
57035703
} finally {
57045704
array_pop($this->hydrationStack);
57055705
}
@@ -6122,7 +6122,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
61226122
if (is_array($value)) {
61236123
try {
61246124
$this->hydrationStack[] = 'account';
6125-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($value);
6125+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled⚡️MarketplacePurchase⚡️Account($value);
61266126
} finally {
61276127
array_pop($this->hydrationStack);
61286128
}
@@ -6186,7 +6186,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
61866186
if (is_array($value)) {
61876187
try {
61886188
$this->hydrationStack[] = 'plan';
6189-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($value);
6189+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled⚡️MarketplacePurchase⚡️Plan($value);
61906190
} finally {
61916191
array_pop($this->hydrationStack);
61926192
}
@@ -10244,7 +10244,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
1024410244
$result = [];
1024510245

1024610246
$account = $object->account;
10247-
$account = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️MarketplacePurchase⚡️Account($account);
10247+
$account = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase⚡️Account($account);
1024810248
after_account: $result['account'] = $account;
1024910249

1025010250
$billingCycle = $object->billingCycle;
@@ -10270,7 +10270,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
1027010270
after_onFreeTrial: $result['on_free_trial'] = $onFreeTrial;
1027110271

1027210272
$plan = $object->plan;
10273-
$plan = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️MarketplacePurchase⚡️Plan($plan);
10273+
$plan = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase⚡️Plan($plan);
1027410274
after_plan: $result['plan'] = $plan;
1027510275

1027610276
$unitCount = $object->unitCount;
@@ -10427,7 +10427,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
1042710427
$result = [];
1042810428

1042910429
$account = $object->account;
10430-
$account = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($account);
10430+
$account = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled⚡️MarketplacePurchase⚡️Account($account);
1043110431
after_account: $result['account'] = $account;
1043210432

1043310433
$billingCycle = $object->billingCycle;
@@ -10448,7 +10448,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
1044810448
after_onFreeTrial: $result['on_free_trial'] = $onFreeTrial;
1044910449

1045010450
$plan = $object->plan;
10451-
$plan = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($plan);
10451+
$plan = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled⚡️MarketplacePurchase⚡️Plan($plan);
1045210452
after_plan: $result['plan'] = $plan;
1045310453

1045410454
$unitCount = $object->unitCount;

0 commit comments

Comments
 (0)