Skip to content

Commit 9cf741d

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4 (hash: b807e1aa55a31493f276a1c45eb359fa) from 1.1.4 (hash: 8a071f341e7a01c0626fe0ebf3a81441)
Detected Schema changes: ERROR: error: Error thrown when comparing: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [218124:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [218126:11] ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [211055:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [211057:11]
1 parent 020442f commit 9cf741d

File tree

214 files changed

+3622
-64
lines changed

Some content is hidden

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

214 files changed

+3622
-64
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18607,6 +18607,30 @@ $client->operations()->securityAdvisories()->updateRepositoryAdvisory( ow
1860718607
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#update-a-repository-security-advisory).
1860818608

1860918609

18610+
### security-advisories/create-repository-advisory-cve-request
18611+
18612+
Request a CVE for a repository security advisory
18613+
18614+
Using the `call` method:
18615+
```php
18616+
$client->call('POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve', [
18617+
'owner' => 'generated',
18618+
'repo' => 'generated',
18619+
'ghsa_id' => 'generated',
18620+
]);
18621+
```
18622+
18623+
Operations method:
18624+
```php
18625+
$client->operations()->securityAdvisories()->createRepositoryAdvisoryCveRequest( owner: 'generated',
18626+
repo: 'generated',
18627+
ghsa_id: 'generated',
18628+
);
18629+
```
18630+
18631+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory).
18632+
18633+
1861018634
### activity/list-stargazers-for-repo
1861118635

1861218636
List stargazers

etc/openapi-client-generator.state

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\Attribute\CastUnionToType\Schema\WebhookRepositoryRulesetEdited\Changes\Rules\Updated;
6+
7+
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
8+
use Attribute;
9+
use EventSauce\ObjectHydrator\ObjectMapper;
10+
use EventSauce\ObjectHydrator\PropertyCaster;
11+
use Throwable;
12+
13+
use function array_keys;
14+
use function array_unique;
15+
use function implode;
16+
use function is_array;
17+
use function sort;
18+
19+
#[Attribute(Attribute::TARGET_PARAMETER)]
20+
final class Rule implements PropertyCaster
21+
{
22+
public function cast(mixed $value, ObjectMapper $hydrator): mixed
23+
{
24+
if (is_array($value)) {
25+
$signatureChunks = array_unique(array_keys($value));
26+
sort($signatureChunks);
27+
$signature = implode('|', $signatureChunks);
28+
if ($signature === 'type' && $value['type'] === 'creation') {
29+
try {
30+
return $hydrator->hydrateObject(Schema\RepositoryRuleCreation::class, $value);
31+
} catch (Throwable) {
32+
}
33+
}
34+
35+
if ($signature === 'type|parameters' && $value['type'] === 'update') {
36+
try {
37+
return $hydrator->hydrateObject(Schema\RepositoryRuleUpdate::class, $value);
38+
} catch (Throwable) {
39+
}
40+
}
41+
42+
if ($signature === 'type' && $value['type'] === 'deletion') {
43+
try {
44+
return $hydrator->hydrateObject(Schema\RepositoryRuleDeletion::class, $value);
45+
} catch (Throwable) {
46+
}
47+
}
48+
49+
if ($signature === 'type' && $value['type'] === 'required_linear_history') {
50+
try {
51+
return $hydrator->hydrateObject(Schema\RepositoryRuleRequiredLinearHistory::class, $value);
52+
} catch (Throwable) {
53+
}
54+
}
55+
56+
if ($signature === 'type|parameters' && $value['type'] === 'required_deployments') {
57+
try {
58+
return $hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $value);
59+
} catch (Throwable) {
60+
}
61+
}
62+
63+
if ($signature === 'type' && $value['type'] === 'required_signatures') {
64+
try {
65+
return $hydrator->hydrateObject(Schema\RepositoryRuleRequiredSignatures::class, $value);
66+
} catch (Throwable) {
67+
}
68+
}
69+
70+
if ($signature === 'type|parameters' && $value['type'] === 'pull_request') {
71+
try {
72+
return $hydrator->hydrateObject(Schema\RepositoryRulePullRequest::class, $value);
73+
} catch (Throwable) {
74+
}
75+
}
76+
77+
if ($signature === 'type|parameters' && $value['type'] === 'required_status_checks') {
78+
try {
79+
return $hydrator->hydrateObject(Schema\RepositoryRuleRequiredStatusChecks::class, $value);
80+
} catch (Throwable) {
81+
}
82+
}
83+
84+
if ($signature === 'type' && $value['type'] === 'non_fast_forward') {
85+
try {
86+
return $hydrator->hydrateObject(Schema\RepositoryRuleNonFastForward::class, $value);
87+
} catch (Throwable) {
88+
}
89+
}
90+
91+
if ($signature === 'type|parameters' && $value['type'] === 'commit_message_pattern') {
92+
try {
93+
return $hydrator->hydrateObject(Schema\RepositoryRuleCommitMessagePattern::class, $value);
94+
} catch (Throwable) {
95+
}
96+
}
97+
98+
if ($signature === 'type|parameters' && $value['type'] === 'commit_author_email_pattern') {
99+
try {
100+
return $hydrator->hydrateObject(Schema\RepositoryRuleCommitAuthorEmailPattern::class, $value);
101+
} catch (Throwable) {
102+
}
103+
}
104+
105+
if ($signature === 'type|parameters' && $value['type'] === 'committer_email_pattern') {
106+
try {
107+
return $hydrator->hydrateObject(Schema\RepositoryRuleCommitterEmailPattern::class, $value);
108+
} catch (Throwable) {
109+
}
110+
}
111+
112+
if ($signature === 'type|parameters' && $value['type'] === 'branch_name_pattern') {
113+
try {
114+
return $hydrator->hydrateObject(Schema\RepositoryRuleBranchNamePattern::class, $value);
115+
} catch (Throwable) {
116+
}
117+
}
118+
119+
if ($signature === 'type|parameters' && $value['type'] === 'tag_name_pattern') {
120+
try {
121+
return $hydrator->hydrateObject(Schema\RepositoryRuleTagNamePattern::class, $value);
122+
} catch (Throwable) {
123+
}
124+
}
125+
}
126+
127+
return $value;
128+
}
129+
}

src/Client.php

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

src/ClientInterface.php

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

src/Hydrator/Operation/App/Installations/InstallationId.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
6464

6565
$value = $accountCaster1->cast($value, $this);
6666

67+
if ($value === null) {
68+
$missingFields[] = 'account';
69+
goto after_account;
70+
}
71+
6772
$properties['account'] = $value;
6873

6974
after_account:

src/Hydrator/Operation/Meta.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
8989

9090
after_hooks:
9191

92+
$value = $payload['github_enterprise_importer'] ?? null;
93+
94+
if ($value === null) {
95+
$properties['githubEnterpriseImporter'] = null;
96+
goto after_githubEnterpriseImporter;
97+
}
98+
99+
$properties['githubEnterpriseImporter'] = $value;
100+
101+
after_githubEnterpriseImporter:
102+
92103
$value = $payload['web'] ?? null;
93104

94105
if ($value === null) {
@@ -499,6 +510,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
499510
after_hooks: $result['hooks'] = $hooks;
500511

501512

513+
$githubEnterpriseImporter = $object->githubEnterpriseImporter;
514+
515+
if ($githubEnterpriseImporter === null) {
516+
goto after_githubEnterpriseImporter;
517+
}
518+
static $githubEnterpriseImporterSerializer0;
519+
520+
if ($githubEnterpriseImporterSerializer0 === null) {
521+
$githubEnterpriseImporterSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
522+
));
523+
}
524+
525+
$githubEnterpriseImporter = $githubEnterpriseImporterSerializer0->serialize($githubEnterpriseImporter, $this);
526+
after_githubEnterpriseImporter: $result['github_enterprise_importer'] = $githubEnterpriseImporter;
527+
528+
502529
$web = $object->web;
503530

504531
if ($web === null) {

src/Hydrator/Operation/Orgs/Org/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
6363

6464
$value = $accountCaster1->cast($value, $this);
6565

66+
if ($value === null) {
67+
$missingFields[] = 'account';
68+
goto after_account;
69+
}
70+
6671
$properties['account'] = $value;
6772

6873
after_account:

src/Hydrator/Operation/Orgs/Org/Members/Username/Copilot.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
7575

7676
$value = $assigningTeamCaster1->cast($value, $this);
7777

78+
if ($value === null) {
79+
$properties['assigningTeam'] = null;
80+
goto after_assigningTeam;
81+
}
82+
7883
if (is_array($value)) {
7984
try {
8085
$this->hydrationStack[] = 'assigningTeam';

src/Hydrator/Operation/Orgs/Org/Rulesets.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
238238

239239
$value = $conditionsCaster1->cast($value, $this);
240240

241+
if ($value === null) {
242+
$properties['conditions'] = null;
243+
goto after_conditions;
244+
}
245+
241246
$properties['conditions'] = $value;
242247

243248
after_conditions:

0 commit comments

Comments
 (0)