Skip to content

Commit 042b3ae

Browse files
authored
Merge pull request #1242 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-5ebfc5c2a69a8e68eadbe18dfa04e5f0-from-1.1.4-5ebfc5c2a69a8e68eadbe18dfa04e5f0
2 parents 06fdace + 6885fa5 commit 042b3ae

File tree

18 files changed

+61
-52
lines changed

18 files changed

+61
-52
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "fb4f59d4f7690940a5768a05bb3a93e7",
2+
"specHash": "5ebfc5c2a69a8e68eadbe18dfa04e5f0",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5980,7 +5980,7 @@
59805980
},
59815981
{
59825982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5983-
"hash": "790eeced780da4c26a9ed74ff5f3f523"
5983+
"hash": "4f5d7fef37bd2120a1780f62f55955d4"
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -22524,7 +22524,7 @@
2252422524
},
2252522525
{
2252622526
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php",
22527-
"hash": "3055848e7a5b2104b955c962a6ecc4c2"
22527+
"hash": "b3f9a3392d3bacb0fb2233579a46552d"
2252822528
},
2252922529
{
2253022530
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php",
@@ -22536,7 +22536,7 @@
2253622536
},
2253722537
{
2253822538
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php",
22539-
"hash": "09821c9af18dc13584d353e961ae170e"
22539+
"hash": "4c6a8d6987e03b259607152e2729331a"
2254022540
},
2254122541
{
2254222542
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php",
@@ -26104,7 +26104,7 @@
2610426104
},
2610526105
{
2610626106
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
26107-
"hash": "0d02ab6ee39f3c666b400ae8c58e1de6"
26107+
"hash": "df0c662e6d071bda44f4a643ee7ff607"
2610826108
},
2610926109
{
2611026110
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -26416,7 +26416,7 @@
2641626416
},
2641726417
{
2641826418
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
26419-
"hash": "635629223b806dccb50f29acfe5ff559"
26419+
"hash": "47c51a71e9d1c87a2403b10abaee7745"
2642026420
},
2642126421
{
2642226422
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -26664,7 +26664,7 @@
2666426664
},
2666526665
{
2666626666
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
26667-
"hash": "56e6f815d926fb78539f640d62d5d238"
26667+
"hash": "01c46f8698c2b37d5d7b968995b9b361"
2666826668
},
2666926669
{
2667026670
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -26768,7 +26768,7 @@
2676826768
},
2676926769
{
2677026770
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
26771-
"hash": "986d79aa04979f9b5ac747c661758282"
26771+
"hash": "34c63a5614c82b89a9acc00d8e80e186"
2677226772
},
2677326773
{
2677426774
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
@@ -29780,15 +29780,15 @@
2978029780
},
2978129781
{
2978229782
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php",
29783-
"hash": "da958d3fe588d23d59c3e3ecd49215ce"
29783+
"hash": "c6be4f5147572f1e7fbabb4f5b6dd1d7"
2978429784
},
2978529785
{
2978629786
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php",
29787-
"hash": "8c4433cbfeffca873bdcfc8750b58877"
29787+
"hash": "a61f2596cc9e3bf07331e7b04f21304f"
2978829788
},
2978929789
{
2979029790
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php",
29791-
"hash": "0093e4cfd938b7fffaa8c3defbaf71a1"
29791+
"hash": "845025797e8917261c9504d240474614"
2979229792
},
2979329793
{
2979429794
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php",
@@ -29872,11 +29872,11 @@
2987229872
},
2987329873
{
2987429874
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29875-
"hash": "68056b3f9feb382a8a701bef47f897c2"
29875+
"hash": "39a5e2f5decb0f829364411b9f148303"
2987629876
},
2987729877
{
2987829878
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29879-
"hash": "f76a84b455952691992a8910f57fe448"
29879+
"hash": "6ac97666590e56ac374b6855d27ae54e"
2988029880
},
2988129881
{
2988229882
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30196,7 +30196,7 @@
3019630196
},
3019730197
{
3019830198
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php",
30199-
"hash": "78dbb519c38839f144297e613a4e083a"
30199+
"hash": "d978985d3f259b7a9c75ac334ff9c991"
3020030200
},
3020130201
{
3020230202
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php",
@@ -32092,7 +32092,7 @@
3209232092
},
3209332093
{
3209432094
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetRepositoriesForConfiguration.php",
32095-
"hash": "3a5f58cdc041ab05a6fd24a08513cd6f"
32095+
"hash": "e8e2988d3f1e4e1e81e28fefd50d7ea3"
3209632096
},
3209732097
{
3209832098
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetRepositoriesForConfigurationTest.php",
@@ -32140,7 +32140,7 @@
3214032140
},
3214132141
{
3214232142
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
32143-
"hash": "cd0dd2e123717a37dc1e024386099683"
32143+
"hash": "8cdb43384293a93b36ca25b86d0ea079"
3214432144
},
3214532145
{
3214632146
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php",
@@ -32160,7 +32160,7 @@
3216032160
},
3216132161
{
3216232162
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
32163-
"hash": "593cbfdfe2b976031b59192081c3f61d"
32163+
"hash": "fde1258be104d6d06536f578b6fa8c18"
3216432164
},
3216532165
{
3216632166
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
140140
$value = $payload['organization'] ?? null;
141141

142142
if ($value === null) {
143-
$missingFields[] = 'organization';
143+
$properties['organization'] = null;
144144
goto after_organization;
145145
}
146146

@@ -937,7 +937,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
937937
$value = $payload['organization'] ?? null;
938938

939939
if ($value === null) {
940-
$missingFields[] = 'organization';
940+
$properties['organization'] = null;
941941
goto after_organization;
942942
}
943943

@@ -1097,7 +1097,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
10971097
$value = $payload['organization'] ?? null;
10981098

10991099
if ($value === null) {
1100-
$missingFields[] = 'organization';
1100+
$properties['organization'] = null;
11011101
goto after_organization;
11021102
}
11031103

@@ -1280,7 +1280,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
12801280
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation);
12811281
after_installation: $result['installation'] = $installation;
12821282

1283-
$organization = $object->organization;
1283+
$organization = $object->organization;
1284+
1285+
if ($organization === null) {
1286+
goto after_organization;
1287+
}
1288+
12841289
$organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
12851290
after_organization: $result['organization'] = $organization;
12861291

@@ -1606,7 +1611,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
16061611
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation);
16071612
after_installation: $result['installation'] = $installation;
16081613

1609-
$organization = $object->organization;
1614+
$organization = $object->organization;
1615+
1616+
if ($organization === null) {
1617+
goto after_organization;
1618+
}
1619+
16101620
$organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
16111621
after_organization: $result['organization'] = $organization;
16121622

@@ -1663,7 +1673,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
16631673
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation);
16641674
after_installation: $result['installation'] = $installation;
16651675

1666-
$organization = $object->organization;
1676+
$organization = $object->organization;
1677+
1678+
if ($organization === null) {
1679+
goto after_organization;
1680+
}
1681+
16671682
$organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
16681683
after_organization: $result['organization'] = $organization;
16691684

clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return iterable<int,Schema\CodeSecurityConfigurationRepositories> */
27+
/** @return Observable<Schema\CodeSecurityConfigurationRepositories> */
2828
public function call(string $org, int $configurationId, string $before, string $after, int $perPage = 30, string $status = 'all'): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeSecurity\GetRepositoriesForConfiguration($this->responseSchemaValidator, $this->hydrator, $org, $configurationId, $before, $after, $perPage, $status);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return iterable<int,Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
27+
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
2828
public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return iterable<int,Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
27+
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
2828
public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page);

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getConfiguration(array $params): CodeSecurityConfiguration|Witho
9696
return $operator->call($arguments['org'], $arguments['configuration_id']);
9797
}
9898

99-
/** @return iterable<int,Schema\CodeSecurityConfigurationRepositories> */
99+
/** @return Observable<Schema\CodeSecurityConfigurationRepositories> */
100100
public function getRepositoriesForConfiguration(array $params): iterable
101101
{
102102
$arguments = [];

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,7 @@ public function listReleaseAssets(array $params): iterable
27302730
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page']);
27312731
}
27322732

2733-
/** @return iterable<int,Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
2733+
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
27342734
public function getBranchRules(array $params): iterable
27352735
{
27362736
$arguments = [];

0 commit comments

Comments
 (0)