Skip to content

Commit 38e02eb

Browse files
authored
Merge pull request #1527 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-16de2a81f1c35833bd49594dda36d269-from-1.1.4-16de2a81f1c35833bd49594dda36d269
2 parents bdecd09 + ea10980 commit 38e02eb

File tree

8 files changed

+71
-16
lines changed

8 files changed

+71
-16
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "1a921a530f820efa033dc420e6e40c95",
2+
"specHash": "16de2a81f1c35833bd49594dda36d269",
33
"generatedFiles": {
44
"files": [
55
{
@@ -788,7 +788,7 @@
788788
},
789789
{
790790
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Artifact.php",
791-
"hash": "b1ebe11cdce02325b812861ad423f569"
791+
"hash": "0ae5e956f39d3359295027e0b1030f7a"
792792
},
793793
{
794794
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsCacheList.php",
@@ -5052,7 +5052,7 @@
50525052
},
50535053
{
50545054
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListArtifactsForRepo\/Response\/ApplicationJson\/Ok.php",
5055-
"hash": "2f542021b8a055ce9cf0ce3bfa87b2ca"
5055+
"hash": "1a007cc9edb090f1efec8a2a43707b37"
50565056
},
50575057
{
50585058
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/ReRunJobForWorkflowRun\/Request\/ApplicationJson.php",
@@ -11730,17 +11730,13 @@
1173011730
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Projects\/CreateColumn\/Request\/ApplicationJson.php",
1173111731
"hash": "2aa45263671135fe8fdd8183d6d9c785"
1173211732
},
11733-
{
11734-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1A91B16F\/TietBF38476A\/Tiet7587BB22\/TietE0507C4B.php",
11735-
"hash": "a7de1c0500dc6b4509b2089361c75a2f"
11736-
},
1173711733
{
1173811734
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok.php",
11739-
"hash": "4dd33c1b2998d67841406425f8cffb8d"
11735+
"hash": "70bfc1bb85d64fc09be7769e3c978f48"
1174011736
},
1174111737
{
1174211738
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok\/Application\/Json.php",
11743-
"hash": "16db918de3600b04499127ad64de7d20"
11739+
"hash": "fc8a1bef3937dae377a263b645e55e2a"
1174411740
},
1174511741
{
1174611742
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD2A75913\/Tiet0388E4E1\/TietCC684AA9\/Tiet46754F39.php",
@@ -27560,7 +27556,7 @@
2756027556
},
2756127557
{
2756227558
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId.php",
27563-
"hash": "f02fcb061692e8e679d309661c113ef3"
27559+
"hash": "0b68d75f06a35dcbe4445acee9828f78"
2756427560
},
2756527561
{
2756627562
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId\/ArchiveFormat.php",
@@ -35057,6 +35053,10 @@
3505735053
{
3505835054
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationSeatBreakdown.php",
3505935055
"hash": "ae9b75aa40c504807916598c96e7569a"
35056+
},
35057+
{
35058+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCF22D054\/Tiet02EB2DC0\/Tiet6BB5072C\/Tiet3B86314A.php",
35059+
"hash": "aa4e99cc47f789f858586329ecfca850"
3506035060
}
3506135061
]
3506235062
},

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
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⚡️GitHubEnterpriseClou
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) {
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22;
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/Artifact.php

Lines changed: 13 additions & 1 deletion
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/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/current.spec.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91216,6 +91216,15 @@ components:
9121691216
- string
9121791217
- 'null'
9121891218
format: date-time
91219+
digest:
91220+
type:
91221+
- string
91222+
- 'null'
91223+
description: The SHA256 digest of the artifact. This field will only be
91224+
populated on artifacts uploaded with upload-artifact v4 or newer. For
91225+
older versions, this field will be null.
91226+
examples:
91227+
- sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
9121991228
workflow_run:
9122091229
type:
9122191230
- object
@@ -224262,6 +224271,7 @@ components:
224262224271
created_at: '2020-01-10T14:59:22Z'
224263224272
expires_at: '2020-03-21T14:59:22Z'
224264224273
updated_at: '2020-02-21T14:59:22Z'
224274+
digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
224265224275
workflow_run:
224266224276
id: 2332938
224267224277
repository_id: 1296269
@@ -224278,6 +224288,7 @@ components:
224278224288
created_at: '2020-01-10T14:59:22Z'
224279224289
expires_at: '2020-03-21T14:59:22Z'
224280224290
updated_at: '2020-02-21T14:59:22Z'
224291+
digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
224281224292
workflow_run:
224282224293
id: 2332942
224283224294
repository_id: 1296269
@@ -224296,6 +224307,7 @@ components:
224296224307
created_at: '2020-01-10T14:59:22Z'
224297224308
expires_at: '2020-01-21T14:59:22Z'
224298224309
updated_at: '2020-01-21T14:59:22Z'
224310+
digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c
224299224311
workflow_run:
224300224312
id: 2332938
224301224313
repository_id: 1296269

0 commit comments

Comments
 (0)