Skip to content

Commit 846d9f2

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-5bd2a30080267627618f4b33aa9b7f31 from 1.1.4-2d60f44f2f6c4f1e645de34b84c95208
Detected Schema changes: starting work. Building original model for commit 5b9ea7 SPEC: extracted 2 commits from history ``` ├─┬Paths │ ├─┬/repos/{owner}/{repo}/rulesets/{ruleset_id} │ │ └─┬PUT │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬target │ │ ├──[➖] enum (36279:21)❌ │ │ └──[🔀] description (36260:32) │ ├─┬/orgs/{org}/rulesets │ │ └─┬POST │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬target │ │ ├──[➖] enum (11893:21)❌ │ │ └──[🔀] description (11886:32) │ ├─┬/repos/{owner}/{repo}/rulesets │ │ └─┬POST │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬target │ │ ├──[➖] enum (36061:21)❌ │ │ └──[🔀] description (36046:32) │ └─┬/orgs/{org}/rulesets/{ruleset_id} │ └─┬PUT │ └─┬Requestbody │ └─┬application/json │ └─┬Schema │ └─┬target │ ├──[➖] enum (12106:21)❌ │ └──[🔀] description (12095:32) └─┬Components ├──[➖] schemas (89305:7)❌ ├──[➖] schemas (92585:7)❌ ├──[➖] schemas (97246:7)❌ ├──[➖] schemas (91291:7)❌ ├──[➖] schemas (93580:7)❌ ├──[➖] schemas (93515:7)❌ ├──[➖] schemas (90139:7)❌ ├──[➖] schemas (90361:7)❌ ├──[➖] schemas (96618:7)❌ ├──[➖] schemas (89170:7)❌ ├──[➖] schemas (90196:7)❌ ├──[➖] schemas (92501:7)❌ ├──[➖] schemas (96300:7)❌ ├──[➖] schemas (93450:7)❌ ├──[➖] schemas (93094:7)❌ ├──[➖] schemas (93340:7)❌ ├──[➖] schemas (89175:7)❌ ├──[➖] schemas (89224:7)❌ ├──[➖] schemas (90106:7)❌ ├──[➖] schemas (89180:7)❌ ├──[➖] schemas (97476:7)❌ ├──[➖] schemas (90373:7)❌ ├──[➖] schemas (95869:7)❌ ├──[➖] schemas (91432:7)❌ ├──[➖] schemas (96152:7)❌ ├──[➖] schemas (96304:7)❌ ├──[➖] schemas (96934:7)❌ ├──[➖] schemas (92343:7)❌ ├──[➖] schemas (89949:7)❌ ├──[➖] schemas (93215:7)❌ ├──[➖] schemas (90189:7)❌ ├──[➖] schemas (92868:7)❌ ├──[➖] schemas (89184:7)❌ ├──[➖] schemas (90164:7)❌ ├──[➖] schemas (89482:7)❌ ├──[➖] schemas (89188:7)❌ ├──[➖] schemas (97133:7)❌ ├──[➖] schemas (89383:7)❌ ├──[➖] schemas (97519:7)❌ ├──[➖] schemas (92413:7)❌ ├──[➖] schemas (89266:7)❌ ├──[➖] schemas (97472:7)❌ ├──[➖] schemas (89413:7)❌ ├──[➖] schemas (92728:7)❌ ├─┬repository-rule │ ├──[➖] oneOf (72024:7)❌ │ ├──[➖] oneOf (71739:7)❌ │ ├──[➖] oneOf (71922:7)❌ │ ├──[➖] oneOf (72223:9)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71937:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71971:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71772:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71761:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (72106:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71795:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71806:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71750:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71863:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71892:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (72005:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (71720:14)❌ │ └─┬ONEOF │ └──[🔀] $ref (71903:14)❌ ├─┬webhook-issue-comment-edited │ ├──changes │ └─┬comment │ └──[🔀] $ref (105024:11)❌ ├─┬integration │ └──[🔀] type (62866:13)❌ ├─┬repository-ruleset │ └─┬target │ ├──[➖] enum (72320:13)❌ │ └──[🔀] description (72199:24) ├─┬webhook-issue-comment-deleted │ └─┬comment │ └──[🔀] $ref (103664:11)❌ └─┬repository-ruleset-bypass-actor ├──[➕] required (71568:9)❌ └─┬actor_id └──[🔀] type (71573:17)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 8 | 4 | | components | 68 | 67 | Date: 04/27/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _76_ - **Modifications**: _22_ - **Removals**: _53_ - **Additions**: _1_ - **Breaking Removals**: _53_ - **Breaking Modifications**: _17_ - **Breaking Additions**: _1_ ERROR: breaking changes discovered
1 parent a7e77e5 commit 846d9f2

File tree

723 files changed

+83992
-159960
lines changed

Some content is hidden

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

723 files changed

+83992
-159960
lines changed

clients/GitHub/etc/openapi-client-generator.state

Lines changed: 942 additions & 2062 deletions
Large diffs are not rendered by default.

clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,34 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
123123
}
124124
}
125125

126+
if ($signature === 'parameters|type' && $value['type'] === 'file_path_restriction') {
127+
try {
128+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fourteen::class, $value);
129+
} catch (Throwable) {
130+
}
131+
}
132+
133+
if ($signature === 'parameters|type' && $value['type'] === 'max_file_path_length') {
134+
try {
135+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value);
136+
} catch (Throwable) {
137+
}
138+
}
139+
140+
if ($signature === 'parameters|type' && $value['type'] === 'file_extension_restriction') {
141+
try {
142+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value);
143+
} catch (Throwable) {
144+
}
145+
}
146+
147+
if ($signature === 'parameters|type' && $value['type'] === 'max_file_size') {
148+
try {
149+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value);
150+
} catch (Throwable) {
151+
}
152+
}
153+
126154
if ($signature === 'parameters|type' && $value['type'] === 'workflows') {
127155
try {
128156
return $hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $value);

clients/GitHub/src/Internal/Hydrator/WebHook/DeployKey.php

Lines changed: 14 additions & 179 deletions
Large diffs are not rendered by default.

clients/GitHub/src/Internal/Hydrator/WebHook/Deployment.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp;
2020
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Owner;
2121
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions;
22-
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Workflow;
2322
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun;
2423
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\Actor;
2524
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository;
2625
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\Repository;
2726
use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\TriggeringActor;
27+
use ApiClients\Client\GitHub\Schema\WebhooksWorkflow;
2828
use EventSauce\ObjectHydrator\IterableList;
2929
use EventSauce\ObjectHydrator\ObjectMapper;
3030
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -78,7 +78,7 @@ public function hydrateObject(string $className, array $payload): object
7878
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload),
7979
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload),
8080
'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload),
81-
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Workflow' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($payload),
81+
'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($payload),
8282
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($payload),
8383
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($payload),
8484
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository($payload),
@@ -237,7 +237,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
237237
if (is_array($value)) {
238238
try {
239239
$this->hydrationStack[] = 'workflow';
240-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($value);
240+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($value);
241241
} finally {
242242
array_pop($this->hydrationStack);
243243
}
@@ -5040,7 +5040,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp
50405040
}
50415041
}
50425042

5043-
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow(array $payload): Workflow
5043+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow
50445044
{
50455045
$properties = [];
50465046
$missingFields = [];
@@ -5155,17 +5155,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
51555155

51565156
after_url:
51575157
} catch (Throwable $exception) {
5158-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Workflow', $exception, stack: $this->hydrationStack);
5158+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksWorkflow', $exception, stack: $this->hydrationStack);
51595159
}
51605160

51615161
if (count($missingFields) > 0) {
5162-
throw UnableToHydrateObject::dueToMissingFields(Workflow::class, $missingFields, stack: $this->hydrationStack);
5162+
throw UnableToHydrateObject::dueToMissingFields(WebhooksWorkflow::class, $missingFields, stack: $this->hydrationStack);
51635163
}
51645164

51655165
try {
5166-
return new Workflow(...$properties);
5166+
return new WebhooksWorkflow(...$properties);
51675167
} catch (Throwable $exception) {
5168-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Workflow', $exception, stack: $this->hydrationStack);
5168+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksWorkflow', $exception, stack: $this->hydrationStack);
51695169
}
51705170
}
51715171

@@ -7679,7 +7679,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
76797679
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object),
76807680
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object),
76817681
'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object),
7682-
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Workflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($object),
7682+
'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($object),
76837683
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($object),
76847684
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($object),
76857685
'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository($object),
@@ -7802,7 +7802,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
78027802
goto after_workflow;
78037803
}
78047804

7805-
$workflow = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($workflow);
7805+
$workflow = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($workflow);
78067806
after_workflow: $result['workflow'] = $workflow;
78077807

78087808
$workflowRun = $object->workflowRun;
@@ -10414,9 +10414,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
1041410414
return $result;
1041510415
}
1041610416

10417-
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow(mixed $object): mixed
10417+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed
1041810418
{
10419-
assert($object instanceof Workflow);
10419+
assert($object instanceof WebhooksWorkflow);
1042010420
$result = [];
1042110421

1042210422
$badgeUrl = $object->badgeUrl;

0 commit comments

Comments
 (0)