Skip to content

Commit 17dc83d

Browse files
authored
Merge pull request #1240 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-fb4f59d4f7690940a5768a05bb3a93e7-from-1.1.4-fb4f59d4f7690940a5768a05bb3a93e7
2 parents c0c5f95 + 23b1bac commit 17dc83d

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/GitHubEnterpriseCloud/etc/openapi-client-generator.state

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

clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/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⚡️GitHubEnterpriseCloud⚡️S
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\GitHubEnterpriseCloud\Schema\Discussion', $exception, stack: $this->hydrationStack);
11381149
}
@@ -8592,6 +8603,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
85928603
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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/GitHubEnterpriseCloud/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⚡️GitHubEnterpriseCloud⚡️S
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\GitHubEnterpriseCloud\Schema\Discussion', $exception, stack: $this->hydrationStack);
11061117
}
@@ -6310,6 +6321,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
63106321
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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/GitHubEnterpriseCloud/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)