Skip to content

Commit bdecd09

Browse files
authored
Merge pull request #1526 from php-api-clients/GitHub/from-1.1.4-95c17fdaedbd73d404bbf04c1d953250-from-1.1.4-95c17fdaedbd73d404bbf04c1d953250
2 parents b84f973 + c79d3ae commit bdecd09

File tree

8 files changed

+71
-16
lines changed

8 files changed

+71
-16
lines changed

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "ce11a30340deb9560fca3f8049e3f57b",
2+
"specHash": "95c17fdaedbd73d404bbf04c1d953250",
33
"generatedFiles": {
44
"files": [
55
{
@@ -684,7 +684,7 @@
684684
},
685685
{
686686
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Artifact.php",
687-
"hash": "fd09cd8c7bcdeda855b354f19aa2b8b1"
687+
"hash": "47b70e77957d4716e9027dfa01a957cb"
688688
},
689689
{
690690
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsCacheList.php",
@@ -4740,7 +4740,7 @@
47404740
},
47414741
{
47424742
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListArtifactsForRepo\/Response\/ApplicationJson\/Ok.php",
4743-
"hash": "b83bdb23d2c75157eded7df88f0457aa"
4743+
"hash": "042dbc72b222a4f77370945bb814c5d9"
47444744
},
47454745
{
47464746
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/ReRunJobForWorkflowRun\/Request\/ApplicationJson.php",
@@ -11278,17 +11278,13 @@
1127811278
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Projects\/CreateColumn\/Request\/ApplicationJson.php",
1127911279
"hash": "35fa29afe24228075d28b0112c59b450"
1128011280
},
11281-
{
11282-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1A91B16F\/TietBF38476A\/Tiet7587BB22\/TietE0507C4B.php",
11283-
"hash": "5c0b1e8d552f3cc6e00d57b4b8b0ad4e"
11284-
},
1128511281
{
1128611282
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok.php",
11287-
"hash": "368af30dd5851c7af10171c1befe7593"
11283+
"hash": "740c79e6c2927713dafaddda25829029"
1128811284
},
1128911285
{
1129011286
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok\/Application\/Json.php",
11291-
"hash": "8c6108860dde759112c703c17b9d2f42"
11287+
"hash": "cd9890bfef8bad68e18a3b6a3b0df5e8"
1129211288
},
1129311289
{
1129411290
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD2A75913\/Tiet0388E4E1\/TietCC684AA9\/Tiet46754F39.php",
@@ -25712,7 +25708,7 @@
2571225708
},
2571325709
{
2571425710
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId.php",
25715-
"hash": "ddfbd076dc337130a24318369561bc59"
25711+
"hash": "f3297697a86724b9ddbfec991ec3ed8b"
2571625712
},
2571725713
{
2571825714
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId\/ArchiveFormat.php",
@@ -31945,6 +31941,10 @@
3194531941
{
3194631942
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationSeatBreakdown.php",
3194731943
"hash": "4260c5a9ab97fe4ce33b3eb89a8b73d0"
31944+
},
31945+
{
31946+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCF22D054\/Tiet02EB2DC0\/Tiet6BB5072C\/Tiet3B86314A.php",
31947+
"hash": "779373dbfefbae34d8f946010c1d6e8e"
3194831948
}
3194931949
]
3195031950
},

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php

+19
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Arti
162162

163163
after_updatedAt:
164164

165+
$value = $payload['digest'] ?? null;
166+
167+
if ($value === null) {
168+
$properties['digest'] = null;
169+
goto after_digest;
170+
}
171+
172+
$properties['digest'] = $value;
173+
174+
after_digest:
175+
165176
$value = $payload['workflow_run'] ?? null;
166177

167178
if ($value === null) {
@@ -415,6 +426,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
415426

416427
after_updatedAt: $result['updated_at'] = $updatedAt;
417428

429+
$digest = $object->digest;
430+
431+
if ($digest === null) {
432+
goto after_digest;
433+
}
434+
435+
after_digest: $result['digest'] = $digest;
436+
418437
$workflowRun = $object->workflowRun;
419438

420439
if ($workflowRun === null) {

clients/GitHub/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php renamed to clients/GitHub/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php

+14-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C;
66

77
use EventSauce\ObjectHydrator\MapFrom;
88

9-
abstract readonly class TietE0507C4B
9+
abstract readonly class Tiet3B86314A
1010
{
1111
public const SCHEMA_JSON = '{
1212
"required": [
@@ -99,6 +99,16 @@
9999
],
100100
"format": "date-time"
101101
},
102+
"digest": {
103+
"type": [
104+
"string",
105+
"null"
106+
],
107+
"description": "The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.",
108+
"examples": [
109+
"sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c"
110+
]
111+
},
102112
"workflow_run": {
103113
"type": [
104114
"object",
@@ -159,6 +169,7 @@
159169
"created_at": "1970-01-01T00:00:00+00:00",
160170
"expires_at": "1970-01-01T00:00:00+00:00",
161171
"updated_at": "1970-01-01T00:00:00+00:00",
172+
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
162173
"workflow_run": {
163174
"id": 10,
164175
"repository_id": 42,
@@ -178,6 +189,7 @@
178189
"created_at": "1970-01-01T00:00:00+00:00",
179190
"expires_at": "1970-01-01T00:00:00+00:00",
180191
"updated_at": "1970-01-01T00:00:00+00:00",
192+
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
181193
"workflow_run": {
182194
"id": 10,
183195
"repository_id": 42,

clients/GitHub/src/Schema/Artifact.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@
8888
],
8989
"format": "date-time"
9090
},
91+
"digest": {
92+
"type": [
93+
"string",
94+
"null"
95+
],
96+
"description": "The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.",
97+
"examples": [
98+
"sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c"
99+
]
100+
},
91101
"workflow_run": {
92102
"type": [
93103
"object",
@@ -142,6 +152,7 @@
142152
"created_at": "1970-01-01T00:00:00+00:00",
143153
"expires_at": "1970-01-01T00:00:00+00:00",
144154
"updated_at": "1970-01-01T00:00:00+00:00",
155+
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
145156
"workflow_run": {
146157
"id": 10,
147158
"repository_id": 42,
@@ -155,14 +166,15 @@
155166
* name: The name of the artifact.
156167
* sizeInBytes: The size in bytes of the artifact.
157168
* expired: Whether or not the artifact has expired.
169+
* digest: The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.
158170
*/
159171
public function __construct(public int $id, #[MapFrom('node_id')]
160172
public string $nodeId, public string $name, #[MapFrom('size_in_bytes')]
161173
public int $sizeInBytes, public string $url, #[MapFrom('archive_download_url')]
162174
public string $archiveDownloadUrl, public bool $expired, #[MapFrom('created_at')]
163175
public string|null $createdAt, #[MapFrom('expires_at')]
164176
public string|null $expiresAt, #[MapFrom('updated_at')]
165-
public string|null $updatedAt, #[MapFrom('workflow_run')]
177+
public string|null $updatedAt, public string|null $digest, #[MapFrom('workflow_run')]
166178
public Schema\Artifact\WorkflowRun|null $workflowRun,)
167179
{
168180
}

clients/GitHub/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use ApiClients\Client\GitHub\Schema;
88

9-
final readonly class Ok extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B
9+
final readonly class Ok extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A
1010
{
1111
}

clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use ApiClients\Client\GitHub\Schema;
88

9-
final readonly class Ok extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B
9+
final readonly class Ok extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A
1010
{
1111
}

clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use ApiClients\Client\GitHub\Schema;
88

9-
final readonly class Json extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B
9+
final readonly class Json extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A
1010
{
1111
}

etc/specs/GitHub/current.spec.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -81813,6 +81813,15 @@ components:
8181381813
- string
8181481814
- 'null'
8181581815
format: date-time
81816+
digest:
81817+
type:
81818+
- string
81819+
- 'null'
81820+
description: The SHA256 digest of the artifact. This field will only be
81821+
populated on artifacts uploaded with upload-artifact v4 or newer. For
81822+
older versions, this field will be null.
81823+
examples:
81824+
- sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
8181681825
workflow_run:
8181781826
type:
8181881827
- object
@@ -213148,6 +213157,7 @@ components:
213148213157
created_at: '2020-01-10T14:59:22Z'
213149213158
expires_at: '2020-03-21T14:59:22Z'
213150213159
updated_at: '2020-02-21T14:59:22Z'
213160+
digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
213151213161
workflow_run:
213152213162
id: 2332938
213153213163
repository_id: 1296269
@@ -213164,6 +213174,7 @@ components:
213164213174
created_at: '2020-01-10T14:59:22Z'
213165213175
expires_at: '2020-03-21T14:59:22Z'
213166213176
updated_at: '2020-02-21T14:59:22Z'
213177+
digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
213167213178
workflow_run:
213168213179
id: 2332942
213169213180
repository_id: 1296269
@@ -213182,6 +213193,7 @@ components:
213182213193
created_at: '2020-01-10T14:59:22Z'
213183213194
expires_at: '2020-01-21T14:59:22Z'
213184213195
updated_at: '2020-01-21T14:59:22Z'
213196+
digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
213185213197
workflow_run:
213186213198
id: 2332938
213187213199
repository_id: 1296269

0 commit comments

Comments
 (0)