Skip to content

Commit 06fdace

Browse files
authored
Merge pull request #1241 from php-api-clients/GitHub/from-1.1.4-1f428455b4cea06755dbb12f469fc171-from-1.1.4-1f428455b4cea06755dbb12f469fc171
2 parents 17dc83d + e3b68e4 commit 06fdace

18 files changed

+61
-52
lines changed

clients/GitHub/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": "64034f0aaa76d6090b5eb70ffe778e12",
2+
"specHash": "1f428455b4cea06755dbb12f469fc171",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5612,7 +5612,7 @@
56125612
},
56135613
{
56145614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5615-
"hash": "cf048b8dcf3799a207b828c288738c09"
5615+
"hash": "8424548ebe6553d096fbe836b3a9382f"
56165616
},
56175617
{
56185618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -21008,7 +21008,7 @@
2100821008
},
2100921009
{
2101021010
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php",
21011-
"hash": "6d7cc2fe0b07885f74f61a06022f649e"
21011+
"hash": "e151bf4487dda0d9ba1f0d299e3403a3"
2101221012
},
2101321013
{
2101421014
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php",
@@ -21020,7 +21020,7 @@
2102021020
},
2102121021
{
2102221022
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php",
21023-
"hash": "6c3a8d5a072082d64ba1ec6c290f9438"
21023+
"hash": "e330b3b16b00f944282f9ec109843359"
2102421024
},
2102521025
{
2102621026
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php",
@@ -24476,7 +24476,7 @@
2447624476
},
2447724477
{
2447824478
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
24479-
"hash": "4aa35719d6224ad7eddc2ac98b6e7ccb"
24479+
"hash": "ae27e1573c321117da89fe740d5f5f9a"
2448024480
},
2448124481
{
2448224482
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -24752,7 +24752,7 @@
2475224752
},
2475324753
{
2475424754
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
24755-
"hash": "399f5edcdedb899363ad4b8540da75de"
24755+
"hash": "8afd666358a93bb89c0ae944fe11a6a2"
2475624756
},
2475724757
{
2475824758
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -24976,7 +24976,7 @@
2497624976
},
2497724977
{
2497824978
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
24979-
"hash": "6e51874875891ed278d57ff7b299f1c5"
24979+
"hash": "004122fbb6a1f96d6a0c2801a632c588"
2498024980
},
2498124981
{
2498224982
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -25080,7 +25080,7 @@
2508025080
},
2508125081
{
2508225082
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
25083-
"hash": "518504f44f1fc79ff08cdbe4663075a1"
25083+
"hash": "f15289e9f2df163f19fb9f360950c959"
2508425084
},
2508525085
{
2508625086
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
@@ -27696,15 +27696,15 @@
2769627696
},
2769727697
{
2769827698
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php",
27699-
"hash": "816b9a9bf3adb824e915f523425b0e28"
27699+
"hash": "6fc3bd972e4fc5571d60e8403da16f3b"
2770027700
},
2770127701
{
2770227702
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php",
27703-
"hash": "ce29869ffd300e5b13d122721dd10ed6"
27703+
"hash": "2504f38f1ea361d3757aa0964db4e5fa"
2770427704
},
2770527705
{
2770627706
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php",
27707-
"hash": "5cb186dbb0268552ebf45232fccd7063"
27707+
"hash": "73f2f0678b7993ef20c9b69e780620b3"
2770827708
},
2770927709
{
2771027710
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php",
@@ -27788,11 +27788,11 @@
2778827788
},
2778927789
{
2779027790
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27791-
"hash": "6810d856fa35757c04ed82c7d70096ef"
27791+
"hash": "c06de68a2d5065e055a7200b0f4e2b5d"
2779227792
},
2779327793
{
2779427794
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27795-
"hash": "621c3d1773130e0e9a7dacfb66bcafeb"
27795+
"hash": "1b3588a342742c08a3fe943b1886b3c4"
2779627796
},
2779727797
{
2779827798
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -28112,7 +28112,7 @@
2811228112
},
2811328113
{
2811428114
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php",
28115-
"hash": "a65528d0a98cc5095b9760a70c6b4983"
28115+
"hash": "af76c979df78cec830197ae02510b2ee"
2811628116
},
2811728117
{
2811828118
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php",
@@ -29740,7 +29740,7 @@
2974029740
},
2974129741
{
2974229742
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetRepositoriesForConfiguration.php",
29743-
"hash": "54f942a6978dd9fbfeda1b3bf9e3ffb0"
29743+
"hash": "72bfcfeff1297d5ae5c2de728fee2a4e"
2974429744
},
2974529745
{
2974629746
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetRepositoriesForConfigurationTest.php",
@@ -29804,7 +29804,7 @@
2980429804
},
2980529805
{
2980629806
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
29807-
"hash": "844fd2d6dba69c3bbb0f1d5d05808646"
29807+
"hash": "1dc44fb96797b0a5a6285ed99a7607f0"
2980829808
},
2980929809
{
2981029810
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php",
@@ -29824,7 +29824,7 @@
2982429824
},
2982529825
{
2982629826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
29827-
"hash": "9471386c2ac6625f26fa794fd86d545d"
29827+
"hash": "0f0cad39f86e6ac4799e47f3d4c2fa07"
2982829828
},
2982929829
{
2983029830
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",

clients/GitHub/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⚡️GitHub⚡️Schema⚡️Webh
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⚡️GitHub⚡️Schema⚡️Webh
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⚡️GitHub⚡️Schema⚡️Webh
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⚡️GitHub⚡️Schema
12801280
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
12851290
after_organization: $result['organization'] = $organization;
12861291

@@ -1606,7 +1611,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
16061611
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
16111621
after_organization: $result['organization'] = $organization;
16121622

@@ -1663,7 +1673,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
16631673
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
16681683
after_organization: $result['organization'] = $organization;
16691684

clients/GitHub/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\GitHub\Internal\Operation\CodeSecurity\GetRepositoriesForConfiguration($this->responseSchemaValidator, $this->hydrator, $org, $configurationId, $before, $after, $perPage, $status);

clients/GitHub/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\GitHub\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page);

clients/GitHub/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\GitHub\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page);

clients/GitHub/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/GitHub/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)