Skip to content

Commit 0d249c1

Browse files
authored
Merge pull request #1291 from php-api-clients/GitHub/from-1.1.4-ffa2a2629ce7e409178910932d1b8231-from-1.1.4-ffa2a2629ce7e409178910932d1b8231
2 parents 5b36293 + 5395a3e commit 0d249c1

File tree

7 files changed

+89
-23
lines changed

7 files changed

+89
-23
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "10709c2cd95791d7429380234be06a83",
2+
"specHash": "ffa2a2629ce7e409178910932d1b8231",
33
"generatedFiles": {
44
"files": [
55
{
@@ -256,7 +256,7 @@
256256
},
257257
{
258258
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
259-
"hash": "7ad5d2dd671b62f325c28959a796495f"
259+
"hash": "e8ee700a823b492eedf92e7510837906"
260260
},
261261
{
262262
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
@@ -25344,7 +25344,7 @@
2534425344
},
2534525345
{
2534625346
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php",
25347-
"hash": "7b714fd2c0e6d0e01dadab4a498abfe8"
25347+
"hash": "dd4318bfa1103423cde64c2e63aac119"
2534825348
},
2534925349
{
2535025350
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php",
@@ -27460,15 +27460,15 @@
2746027460
},
2746127461
{
2746227462
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuites.php",
27463-
"hash": "9cfc7c9d99bdf4d33c336da79fd87eae"
27463+
"hash": "f45ebc091b1d2551d6907116aee742f2"
2746427464
},
2746527465
{
2746627466
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuite.php",
27467-
"hash": "79d965e19a6083c8519f90b993b10ee6"
27467+
"hash": "ac2c479148163e95e59a63c6c15d20d8"
2746827468
},
2746927469
{
2747027470
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuite\/RuleEvaluations.php",
27471-
"hash": "0265a4794ad8fe49aad484e3fdb73b44"
27471+
"hash": "8d56c15b6f5658d04342c8e1a6b1dacc"
2747227472
},
2747327473
{
2747427474
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuite\/RuleEvaluations\/RuleSource.php",

clients/GitHub/src/Internal/Hydrator/Operation/Meta.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ApiO
208208

209209
after_actionsMacos:
210210

211+
$value = $payload['codespaces'] ?? null;
212+
213+
if ($value === null) {
214+
$properties['codespaces'] = null;
215+
goto after_codespaces;
216+
}
217+
218+
$properties['codespaces'] = $value;
219+
220+
after_codespaces:
221+
211222
$value = $payload['dependabot'] ?? null;
212223

213224
if ($value === null) {
@@ -741,6 +752,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
741752
$actionsMacos = $actionsMacosSerializer0->serialize($actionsMacos, $this);
742753
after_actionsMacos: $result['actions_macos'] = $actionsMacos;
743754

755+
$codespaces = $object->codespaces;
756+
757+
if ($codespaces === null) {
758+
goto after_codespaces;
759+
}
760+
761+
static $codespacesSerializer0;
762+
763+
if ($codespacesSerializer0 === null) {
764+
$codespacesSerializer0 = new SerializeArrayItems(...[]);
765+
}
766+
767+
$codespaces = $codespacesSerializer0->serialize($codespaces, $this);
768+
after_codespaces: $result['codespaces'] = $codespaces;
769+
744770
$dependabot = $object->dependabot;
745771

746772
if ($dependabot === null) {

clients/GitHub/src/Schema/ApiOverview.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@
138138
"192.0.2.1"
139139
]
140140
},
141+
"codespaces": {
142+
"type": "array",
143+
"items": {
144+
"type": "string"
145+
},
146+
"examples": [
147+
"192.0.2.1"
148+
]
149+
},
141150
"dependabot": {
142151
"type": "array",
143152
"items": {
@@ -283,6 +292,10 @@
283292
"192.0.2.1",
284293
"192.0.2.1"
285294
],
295+
"codespaces": [
296+
"192.0.2.1",
297+
"192.0.2.1"
298+
],
286299
"dependabot": [
287300
"192.0.2.1",
288301
"192.0.2.1"
@@ -327,7 +340,7 @@ public function __construct(#[MapFrom('verifiable_password_authentication')]
327340
public Schema\ApiOverview\SshKeyFingerprints|null $sshKeyFingerprints, #[MapFrom('ssh_keys')]
328341
public array|null $sshKeys, public array|null $hooks, #[MapFrom('github_enterprise_importer')]
329342
public array|null $githubEnterpriseImporter, public array|null $web, public array|null $api, public array|null $git, public array|null $packages, public array|null $pages, public array|null $importer, public array|null $actions, #[MapFrom('actions_macos')]
330-
public array|null $actionsMacos, public array|null $dependabot, public array|null $copilot, public Schema\ApiOverview\Domains|null $domains,)
343+
public array|null $actionsMacos, public array|null $codespaces, public array|null $dependabot, public array|null $copilot, public Schema\ApiOverview\Domains|null $domains,)
331344
{
332345
}
333346
}

clients/GitHub/src/Schema/RuleSuite.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,15 @@
6969
"evaluation_result": {
7070
"enum": [
7171
"pass",
72-
"fail"
72+
"fail",
73+
"bypass",
74+
null
7375
],
74-
"type": "string",
75-
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."
76+
"type": [
77+
"string",
78+
"null"
79+
],
80+
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run."
7681
},
7782
"rule_evaluations": {
7883
"type": "array",
@@ -124,8 +129,11 @@
124129
"description": "The type of rule."
125130
},
126131
"details": {
127-
"type": "string",
128-
"description": "Any associated details with the rule evaluation."
132+
"type": [
133+
"string",
134+
"null"
135+
],
136+
"description": "The detailed failure message for the rule. Null if the rule passed."
129137
}
130138
}
131139
},
@@ -184,7 +192,7 @@
184192
* repositoryId: The ID of the repository associated with the rule evaluation.
185193
* repositoryName: The name of the repository without the `.git` extension.
186194
* result: The result of the rule evaluations for rules with the `active` enforcement status.
187-
* evaluationResult: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.
195+
* evaluationResult: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.
188196
* ruleEvaluations: Details on the evaluated rules.
189197
*/
190198
public function __construct(public int|null $id, #[MapFrom('actor_id')]

clients/GitHub/src/Schema/RuleSuite/RuleEvaluations.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@
5757
"description": "The type of rule."
5858
},
5959
"details": {
60-
"type": "string",
61-
"description": "Any associated details with the rule evaluation."
60+
"type": [
61+
"string",
62+
"null"
63+
],
64+
"description": "The detailed failure message for the rule. Null if the rule passed."
6265
}
6366
}
6467
}';
@@ -80,7 +83,7 @@
8083
* enforcement: The enforcement level of this rule source.
8184
* result: The result of the evaluation of the individual rule.
8285
* ruleType: The type of rule.
83-
* details: Any associated details with the rule evaluation.
86+
* details: The detailed failure message for the rule. Null if the rule passed.
8487
*/
8588
public function __construct(#[MapFrom('rule_source')]
8689
public Schema\RuleSuite\RuleEvaluations\RuleSource|null $ruleSource, public string|null $enforcement, public string|null $result, #[MapFrom('rule_type')]

clients/GitHub/src/Schema/RuleSuites.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"evaluation_result": {
6363
"enum": [
6464
"pass",
65-
"fail"
65+
"fail",
66+
"bypass"
6667
],
6768
"type": "string",
6869
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."

etc/specs/GitHub/current.spec.yaml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19498,9 +19498,9 @@ paths:
1949819498
description: |-
1949919499
Store an artifact attestation and associate it with a repository.
1950019500

19501-
The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required.
19501+
The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required.
1950219502

19503-
Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
19503+
Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
1950419504
tags:
1950519505
- repos
1950619506
operationId: repos/create-attestation
@@ -70022,6 +70022,12 @@ components:
7002270022
type: string
7002370023
examples:
7002470024
- 192.0.2.1
70025+
codespaces:
70026+
type: array
70027+
items:
70028+
type: string
70029+
examples:
70030+
- 192.0.2.1
7002570031
dependabot:
7002670032
type: array
7002770033
items:
@@ -74899,6 +74905,7 @@ components:
7489974905
enum:
7490074906
- pass
7490174907
- fail
74908+
- bypass
7490274909
description: The result of the rule evaluations for rules with the `active`
7490374910
and `evaluate` enforcement statuses, demonstrating whether rules would
7490474911
pass or fail if all rules in the rule suite were `active`.
@@ -74949,13 +74956,18 @@ components:
7494974956
description: The result of the rule evaluations for rules with the `active`
7495074957
enforcement status.
7495174958
evaluation_result:
74952-
type: string
74959+
type:
74960+
- string
74961+
- 'null'
7495374962
enum:
7495474963
- pass
7495574964
- fail
74965+
- bypass
74966+
-
7495674967
description: The result of the rule evaluations for rules with the `active`
7495774968
and `evaluate` enforcement statuses, demonstrating whether rules would
74958-
pass or fail if all rules in the rule suite were `active`.
74969+
pass or fail if all rules in the rule suite were `active`. Null if no
74970+
rules with `evaluate` enforcement status were run.
7495974971
rule_evaluations:
7496074972
type: array
7496174973
description: Details on the evaluated rules.
@@ -74995,8 +75007,11 @@ components:
7499575007
type: string
7499675008
description: The type of rule.
7499775009
details:
74998-
type: string
74999-
description: Any associated details with the rule evaluation.
75010+
type:
75011+
- string
75012+
- 'null'
75013+
description: The detailed failure message for the rule. Null if the
75014+
rule passed.
7500075015
repository-advisory-vulnerability:
7500175016
description: A product affected by the vulnerability detailed in a repository
7500275017
security advisory.

0 commit comments

Comments
 (0)