Skip to content

Commit 7e50049

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-64034f0aaa76d6090b5eb70ffe778e12 from 1.1.4-a5a20c93e8ace47c79943304e911cf70
Detected Schema changes: starting work. Building original model for commit e2955c SPEC: extracted 2 commits from history ``` ├─┬Paths │ ├─┬/orgs/{org}/code-security/configurations/{configuration_id} │ │ ├─┬GET │ │ │ └─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ └──[➖] value (201491:9) │ │ └─┬PATCH │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬enforcement │ │ └──[🔀] description (6546:32) │ ├─┬/orgs/{org}/code-security/configurations │ │ └─┬POST │ │ ├─┬Responses │ │ │ └─┬201 │ │ │ └─┬application/json │ │ │ └─┬default │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ ├──[🔀] value (201396:9) │ │ │ └──[➖] value (201491:9) │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬enforcement │ │ └──[🔀] description (6284:32) │ └─┬/orgs/{org}/code-security/configurations/{configuration_id}/repositories │ └─┬GET │ └─┬Parameters │ └──[🔀] description (6778:22) └─┬Components ├──[➖] schemas (73561:7)❌ ├─┬repository-rule-required-status-checks │ └─┬parameters │ └──[➖] properties (73739:13)❌ ├─┬discussion │ └──[➖] properties (92188:9)❌ ├─┬repository-rule │ ├──[➖] oneOf (74074:9)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73520:14)❌ │ ├─┬ONEOF │ │ ├──[🔀] title (73993:16) │ │ ├──[🔀] description (73994:22) │ │ ├─┬parameters │ │ │ ├──[➕] required (74016:15)❌ │ │ │ ├──[➖] required (74172:15)❌ │ │ │ ├──[➕] properties (74009:15) │ │ │ └──[➖] properties (74165:15)❌ │ │ └─┬type │ │ ├──[➕] enum (74005:15) │ │ └──[➖] enum (74161:15)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73726:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73951:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73760:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73561:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73550:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73895:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (74064:9)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73584:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73595:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73539:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73652:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (74040:9)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73681:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73794:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73509:14)❌ │ ├─┬ONEOF │ │ └──[🔀] $ref (73692:14)❌ │ └─┬ONEOF │ └──[🔀] $ref (74017:9)❌ ├─┬repository-rule-detailed │ ├──[➖] oneOf (86960:9)❌ │ ├─┬ONEOF │ │ └─┬ALLOF │ │ └──[🔀] $ref (73828:14)❌ │ ├─┬ONEOF │ │ ├─┬ALLOF │ │ │ └──[🔀] $ref (86812:14)❌ │ │ └─┬ALLOF │ │ └──[🔀] $ref (73509:14)❌ │ └─┬ONEOF │ └─┬ALLOF │ └──[🔀] $ref (73794:14)❌ ├─┬repository-rule-workflows │ └─┬parameters │ └──[➖] properties (73985:13)❌ └─┬label ├─┬default │ └──[➖] description (83887:24) ├─┬id │ └──[➖] description (83853:24) └─┬description └──[➖] description (83874:24) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 25 | 0 | | components | 39 | 36 | Date: 07/26/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _36_ out of _64_ - **Modifications**: _47_ - **Removals**: _14_ - **Additions**: _3_ - **Breaking Removals**: _9_ - **Breaking Modifications**: _22_ - **Breaking Additions**: _1_ ERROR: breaking changes discovered
1 parent c8dd527 commit 7e50049

File tree

72 files changed

+4524
-440
lines changed

Some content is hidden

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

72 files changed

+4524
-440
lines changed

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

Lines changed: 81 additions & 73 deletions
Large diffs are not rendered by default.

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
5353
}
5454
}
5555

56+
if ($signature === 'parameters|type' && $value['type'] === 'merge_queue') {
57+
try {
58+
return $hydrator->hydrateObject(Schema\RepositoryRuleMergeQueue::class, $value);
59+
} catch (Throwable) {
60+
}
61+
}
62+
5663
if ($signature === 'parameters|type' && $value['type'] === 'required_deployments') {
5764
try {
5865
return $hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $value);
@@ -125,28 +132,28 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
125132

126133
if ($signature === 'parameters|type' && $value['type'] === 'file_path_restriction') {
127134
try {
128-
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fourteen::class, $value);
135+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value);
129136
} catch (Throwable) {
130137
}
131138
}
132139

133140
if ($signature === 'parameters|type' && $value['type'] === 'max_file_path_length') {
134141
try {
135-
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value);
142+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value);
136143
} catch (Throwable) {
137144
}
138145
}
139146

140147
if ($signature === 'parameters|type' && $value['type'] === 'file_extension_restriction') {
141148
try {
142-
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value);
149+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value);
143150
} catch (Throwable) {
144151
}
145152
}
146153

147154
if ($signature === 'parameters|type' && $value['type'] === 'max_file_size') {
148155
try {
149-
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value);
156+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Eighteen::class, $value);
150157
} catch (Throwable) {
151158
}
152159
}

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Disc
11331133
$properties['user'] = $value;
11341134

11351135
after_user:
1136+
1137+
$value = $payload['labels'] ?? null;
1138+
1139+
if ($value === null) {
1140+
$properties['labels'] = null;
1141+
goto after_labels;
1142+
}
1143+
1144+
$properties['labels'] = $value;
1145+
1146+
after_labels:
11361147
} catch (Throwable $exception) {
11371148
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Discussion', $exception, stack: $this->hydrationStack);
11381149
}
@@ -8592,6 +8603,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
85928603
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Discussion⚡️User($user);
85938604
after_user: $result['user'] = $user;
85948605

8606+
$labels = $object->labels;
8607+
8608+
if ($labels === null) {
8609+
goto after_labels;
8610+
}
8611+
8612+
static $labelsSerializer0;
8613+
8614+
if ($labelsSerializer0 === null) {
8615+
$labelsSerializer0 = new SerializeArrayItems(...[]);
8616+
}
8617+
8618+
$labels = $labelsSerializer0->serialize($labels, $this);
8619+
after_labels: $result['labels'] = $labels;
8620+
85958621
return $result;
85968622
}
85978623

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Disc
11011101
$properties['user'] = $value;
11021102

11031103
after_user:
1104+
1105+
$value = $payload['labels'] ?? null;
1106+
1107+
if ($value === null) {
1108+
$properties['labels'] = null;
1109+
goto after_labels;
1110+
}
1111+
1112+
$properties['labels'] = $value;
1113+
1114+
after_labels:
11041115
} catch (Throwable $exception) {
11051116
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Discussion', $exception, stack: $this->hydrationStack);
11061117
}
@@ -6310,6 +6321,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
63106321
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Discussion⚡️User($user);
63116322
after_user: $result['user'] = $user;
63126323

6324+
$labels = $object->labels;
6325+
6326+
if ($labels === null) {
6327+
goto after_labels;
6328+
}
6329+
6330+
static $labelsSerializer0;
6331+
6332+
if ($labelsSerializer0 === null) {
6333+
$labelsSerializer0 = new SerializeArrayItems(...[]);
6334+
}
6335+
6336+
$labels = $labelsSerializer0->serialize($labels, $this);
6337+
after_labels: $result['labels'] = $labels;
6338+
63136339
return $result;
63146340
}
63156341

clients/GitHub/src/Internal/Operation/CodeSecurity/GetRepositoriesForConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class GetRepositoriesForConfiguration
3737
private int $perPage;
3838
/**A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned.
3939
40-
Can be: `all`, `attached`, `attaching`, `detached`, `enforced`, `failed`, `updating` **/
40+
Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` **/
4141
private string $status;
4242

4343
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\CodeSecurity\Configurations\ConfigurationId\Repositories $hydrator, string $org, int $configurationId, string $before, string $after, int $perPage = 30, string $status = 'all')

0 commit comments

Comments
 (0)