Skip to content

Commit b1012da

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-c87cc56b9cb13568aee41ebf298d04c5 from 1.1.4-9265d69e51d451eacbec6579c3e8849e
Detected Schema changes: ERROR: error: Error thrown when comparing: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [217827:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217829:11] ERROR: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [217781:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217783:11]
1 parent f752168 commit b1012da

File tree

29 files changed

+1426
-42
lines changed

29 files changed

+1426
-42
lines changed

etc/openapi-client-generator.state

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "9265d69e51d451eacbec6579c3e8849e",
2+
"specHash": "c87cc56b9cb13568aee41ebf298d04c5",
33
"generatedFiles": {
44
"files": [
55
{
@@ -712,11 +712,11 @@
712712
},
713713
{
714714
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php",
715-
"hash": "b5aa3f3aaa09173247b3fbea6e67ef8f"
715+
"hash": "0ca47f84942c13d6d5a9e896d429ad0a"
716716
},
717717
{
718718
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php",
719-
"hash": "cee095bafd88e44abfd1c31b8538f502"
719+
"hash": "eb917c93c820f2a0bb302bc1d4998cfa"
720720
},
721721
{
722722
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php",
@@ -5132,11 +5132,11 @@
51325132
},
51335133
{
51345134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php",
5135-
"hash": "74c50673a8ffd8f702d173f9d439ec1a"
5135+
"hash": "87ceb1e8092eddc89781f32579007984"
51365136
},
51375137
{
51385138
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php",
5139-
"hash": "8c760aa50ee4aedc8312e58bb9dd22bb"
5139+
"hash": "44340c3ffaefce5920d405fa53891e89"
51405140
},
51415141
{
51425142
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php",
@@ -5856,11 +5856,11 @@
58565856
},
58575857
{
58585858
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php",
5859-
"hash": "1b29268ee9613000559b734637688436"
5859+
"hash": "a0eb50c8ff54481be2714c1d69be4c83"
58605860
},
58615861
{
58625862
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php",
5863-
"hash": "eb1ede278a526534ee5c6e50ae001209"
5863+
"hash": "e9c12b86c6cdaf5f499f538a957682e6"
58645864
},
58655865
{
58665866
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php",
@@ -6076,11 +6076,11 @@
60766076
},
60776077
{
60786078
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/ClientInterface.php",
6079-
"hash": "d82c847dbf0acc4eab22e1cc43a0b074"
6079+
"hash": "4519dfe59d7af714ff082e51d7cc3e47"
60806080
},
60816081
{
60826082
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Client.php",
6083-
"hash": "20c77ab7f6bb1255978c8b127f9bd391"
6083+
"hash": "9a2726f2217040d610862ee2f7a33066"
60846084
},
60856085
{
60866086
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/OperationsInterface.php",
@@ -6188,7 +6188,7 @@
61886188
},
61896189
{
61906190
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
6191-
"hash": "ef728277f17df11dbfd7c6df03469987"
6191+
"hash": "ab37d9aa9dbfb2dd0ecfb0bbfca0c6fb"
61926192
},
61936193
{
61946194
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -13988,7 +13988,7 @@
1398813988
},
1398913989
{
1399013990
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php",
13991-
"hash": "e7a8998f80dfdc6b94f04648e2dd0e81"
13991+
"hash": "726ff7b604bed8f6176c799550f5c78a"
1399213992
},
1399313993
{
1399413994
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php",
@@ -14064,7 +14064,7 @@
1406414064
},
1406514065
{
1406614066
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Copilot.php",
14067-
"hash": "851d586399849540a82c3487e2004c54"
14067+
"hash": "b30a4b83bbe1c7f779933f2ba2f349b3"
1406814068
},
1406914069
{
1407014070
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php",
@@ -14156,15 +14156,15 @@
1415614156
},
1415714157
{
1415814158
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php",
14159-
"hash": "bc73420a231649627778d938db1e55a1"
14159+
"hash": "a554221a5118683d47cee2def44f2728"
1416014160
},
1416114161
{
1416214162
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php",
14163-
"hash": "205bacfea8eaf93a2dc65f3f8c180537"
14163+
"hash": "c4a0a0854ec78426201e92105f47100c"
1416414164
},
1416514165
{
1416614166
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php",
14167-
"hash": "02314078fd5d1daec637d14671e31449"
14167+
"hash": "4a038222d0d66f1b6f490109b7b14f25"
1416814168
},
1416914169
{
1417014170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php",
@@ -14444,7 +14444,7 @@
1444414444
},
1444514445
{
1444614446
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php",
14447-
"hash": "09d10fd7ba91ab643ca421f5aa356736"
14447+
"hash": "20572a02c69324686d8048a1dbbeb03c"
1444814448
},
1444914449
{
1445014450
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php",
@@ -14472,11 +14472,11 @@
1447214472
},
1447314473
{
1447414474
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php",
14475-
"hash": "14aba96734ea97addc85d62de61602a0"
14475+
"hash": "1f2a7c972f675caae9b323e9d82bb56f"
1447614476
},
1447714477
{
1447814478
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php",
14479-
"hash": "63dfa5e391167c70ad902f5387593e76"
14479+
"hash": "196a6fbc8175a42a7959117192a08580"
1448014480
},
1448114481
{
1448214482
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php",
@@ -24492,23 +24492,23 @@
2449224492
},
2449324493
{
2449424494
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRules.php",
24495-
"hash": "0197e13053e411ca27d24d15b0640542"
24495+
"hash": "452d485eaa60114a001cbd9b7e8ec657"
2449624496
},
2449724497
{
2449824498
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php",
24499-
"hash": "4fd0f954c959746f575a634a541d03fc"
24499+
"hash": "8c271d71b1579fbeb133d611943e4259"
2450024500
},
2450124501
{
2450224502
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php",
2450324503
"hash": "edf8b29789b42e5b466cadceeb573e9b"
2450424504
},
2450524505
{
2450624506
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRulesListing.php",
24507-
"hash": "7e0e6a8ce4cf2edc44b46268fbe4dca0"
24507+
"hash": "4d0b92a3e5b9098a1cdb61bb0240e966"
2450824508
},
2450924509
{
2451024510
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php",
24511-
"hash": "531cd51232eecf7650133e582a5b20e1"
24511+
"hash": "6bf395f4d133db935f6fe78bbe9110c1"
2451224512
},
2451324513
{
2451424514
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php",
@@ -28008,7 +28008,7 @@
2800828008
},
2800928009
{
2801028010
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Rule.php",
28011-
"hash": "483cd523722381850a4f47a4ea7df245"
28011+
"hash": "5d2698c2399b1cddf623be28eaf09cb4"
2801228012
},
2801328013
{
2801428014
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson\/Conditions.php",
@@ -28076,7 +28076,7 @@
2807628076
},
2807728077
{
2807828078
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
28079-
"hash": "f09aebc1bd705b0e536b15394d9ec8d4"
28079+
"hash": "8fafc8a49953a1a56902b7fcb0090ae3"
2808028080
},
2808128081
{
2808228082
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -28388,7 +28388,7 @@
2838828388
},
2838928389
{
2839028390
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
28391-
"hash": "263e1084749bd64fae07f2036f3e607b"
28391+
"hash": "ad6a7fcdaaf1da034836af123d1e1b29"
2839228392
},
2839328393
{
2839428394
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -28636,7 +28636,7 @@
2863628636
},
2863728637
{
2863828638
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
28639-
"hash": "4652224e0888da171ffb491126557d74"
28639+
"hash": "f7af73ce576b5171db8615e29c61f078"
2864028640
},
2864128641
{
2864228642
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -28740,7 +28740,7 @@
2874028740
},
2874128741
{
2874228742
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
28743-
"hash": "2a396aabb3f909b715222453a988a738"
28743+
"hash": "ce3a1117c21aef20f04fa9b0da84b52d"
2874428744
},
2874528745
{
2874628746
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
@@ -31657,6 +31657,18 @@
3165731657
{
3165831658
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/GetCopilotSeatDetailsForUserTest.php",
3165931659
"hash": "1b9e6407ec713304f67ee0b73f4077c5"
31660+
},
31661+
{
31662+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsWorkflowFileReference.php",
31663+
"hash": "2adbdcbdd6394168c8b85d759d89941c"
31664+
},
31665+
{
31666+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleWorkflows.php",
31667+
"hash": "9f89eac9e6e23ca2369e111ce2475455"
31668+
},
31669+
{
31670+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleWorkflows\/Parameters.php",
31671+
"hash": "88a8c3a813740b473f1296525f2afb4c"
3166031672
}
3166131673
]
3166231674
},

src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
122122
} catch (Throwable) {
123123
}
124124
}
125+
126+
if ($signature === 'type|parameters' && $value['type'] === 'workflows') {
127+
try {
128+
return $hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $value);
129+
} catch (Throwable) {
130+
}
131+
}
125132
}
126133

127134
return $value;

src/Internal/Operation/Repos/GetBranchRules.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function createRequest(): RequestInterface
5151
return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{branch}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->branch, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}'));
5252
}
5353

54-
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern> */
54+
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows> */
5555
public function createResponse(ResponseInterface $response): Observable
5656
{
5757
$code = $response->getStatusCode();
@@ -64,7 +64,7 @@ public function createResponse(ResponseInterface $response): Observable
6464
* Response
6565
**/
6666
case 200:
67-
return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern {
67+
return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows {
6868
$error = new RuntimeException();
6969
try {
7070
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCreation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema'));
@@ -192,6 +192,15 @@ public function createResponse(ResponseInterface $response): Observable
192192
}
193193

194194
items_application_json_two_hundred_aaaan:
195+
try {
196+
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema'));
197+
198+
return $this->hydrators->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body);
199+
} catch (Throwable $error) {
200+
goto items_application_json_two_hundred_aaaao;
201+
}
202+
203+
items_application_json_two_hundred_aaaao:
195204
throw $error;
196205
});
197206
}

0 commit comments

Comments
 (0)