diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 2d13d3b96d2..1bb81d59fdf 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "ce11a30340deb9560fca3f8049e3f57b", + "specHash": "95c17fdaedbd73d404bbf04c1d953250", "generatedFiles": { "files": [ { @@ -684,7 +684,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Artifact.php", - "hash": "fd09cd8c7bcdeda855b354f19aa2b8b1" + "hash": "47b70e77957d4716e9027dfa01a957cb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsCacheList.php", @@ -4740,7 +4740,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListArtifactsForRepo\/Response\/ApplicationJson\/Ok.php", - "hash": "b83bdb23d2c75157eded7df88f0457aa" + "hash": "042dbc72b222a4f77370945bb814c5d9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/ReRunJobForWorkflowRun\/Request\/ApplicationJson.php", @@ -11278,17 +11278,13 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Projects\/CreateColumn\/Request\/ApplicationJson.php", "hash": "35fa29afe24228075d28b0112c59b450" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1A91B16F\/TietBF38476A\/Tiet7587BB22\/TietE0507C4B.php", - "hash": "5c0b1e8d552f3cc6e00d57b4b8b0ad4e" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok.php", - "hash": "368af30dd5851c7af10171c1befe7593" + "hash": "740c79e6c2927713dafaddda25829029" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "8c6108860dde759112c703c17b9d2f42" + "hash": "cd9890bfef8bad68e18a3b6a3b0df5e8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD2A75913\/Tiet0388E4E1\/TietCC684AA9\/Tiet46754F39.php", @@ -25712,7 +25708,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId.php", - "hash": "ddfbd076dc337130a24318369561bc59" + "hash": "f3297697a86724b9ddbfec991ec3ed8b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId\/ArchiveFormat.php", @@ -31945,6 +31941,10 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationSeatBreakdown.php", "hash": "4260c5a9ab97fe4ce33b3eb89a8b73d0" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCF22D054\/Tiet02EB2DC0\/Tiet6BB5072C\/Tiet3B86314A.php", + "hash": "779373dbfefbae34d8f946010c1d6e8e" } ] }, diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php index 6f937801cd8..8bb8b163f38 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php @@ -162,6 +162,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Arti after_updatedAt: + $value = $payload['digest'] ?? null; + + if ($value === null) { + $properties['digest'] = null; + goto after_digest; + } + + $properties['digest'] = $value; + + after_digest: + $value = $payload['workflow_run'] ?? null; if ($value === null) { @@ -415,6 +426,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_updatedAt: $result['updated_at'] = $updatedAt; + $digest = $object->digest; + + if ($digest === null) { + goto after_digest; + } + + after_digest: $result['digest'] = $digest; + $workflowRun = $object->workflowRun; if ($workflowRun === null) { diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php b/clients/GitHub/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php similarity index 88% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php rename to clients/GitHub/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php index 7ea37f0a91a..c28a604e368 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php +++ b/clients/GitHub/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietE0507C4B +abstract readonly class Tiet3B86314A { public const SCHEMA_JSON = '{ "required": [ @@ -99,6 +99,16 @@ ], "format": "date-time" }, + "digest": { + "type": [ + "string", + "null" + ], + "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.", + "examples": [ + "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c" + ] + }, "workflow_run": { "type": [ "object", @@ -159,6 +169,7 @@ "created_at": "1970-01-01T00:00:00+00:00", "expires_at": "1970-01-01T00:00:00+00:00", "updated_at": "1970-01-01T00:00:00+00:00", + "digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c", "workflow_run": { "id": 10, "repository_id": 42, @@ -178,6 +189,7 @@ "created_at": "1970-01-01T00:00:00+00:00", "expires_at": "1970-01-01T00:00:00+00:00", "updated_at": "1970-01-01T00:00:00+00:00", + "digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c", "workflow_run": { "id": 10, "repository_id": 42, diff --git a/clients/GitHub/src/Schema/Artifact.php b/clients/GitHub/src/Schema/Artifact.php index ecdb98ae653..28269802b39 100644 --- a/clients/GitHub/src/Schema/Artifact.php +++ b/clients/GitHub/src/Schema/Artifact.php @@ -88,6 +88,16 @@ ], "format": "date-time" }, + "digest": { + "type": [ + "string", + "null" + ], + "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.", + "examples": [ + "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c" + ] + }, "workflow_run": { "type": [ "object", @@ -142,6 +152,7 @@ "created_at": "1970-01-01T00:00:00+00:00", "expires_at": "1970-01-01T00:00:00+00:00", "updated_at": "1970-01-01T00:00:00+00:00", + "digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c", "workflow_run": { "id": 10, "repository_id": 42, @@ -155,6 +166,7 @@ * name: The name of the artifact. * sizeInBytes: The size in bytes of the artifact. * expired: Whether or not the artifact has expired. + * 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. */ public function __construct(public int $id, #[MapFrom('node_id')] public string $nodeId, public string $name, #[MapFrom('size_in_bytes')] @@ -162,7 +174,7 @@ public function __construct(public int $id, #[MapFrom('node_id')] public string $archiveDownloadUrl, public bool $expired, #[MapFrom('created_at')] public string|null $createdAt, #[MapFrom('expires_at')] public string|null $expiresAt, #[MapFrom('updated_at')] - public string|null $updatedAt, #[MapFrom('workflow_run')] + public string|null $updatedAt, public string|null $digest, #[MapFrom('workflow_run')] public Schema\Artifact\WorkflowRun|null $workflowRun,) { } diff --git a/clients/GitHub/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php index 7a6515d18a1..17386b75a4f 100644 --- a/clients/GitHub/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php +++ b/clients/GitHub/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHub\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B +final readonly class Ok extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A { } diff --git a/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php index 94836cefab8..0ff9f53cd4f 100644 --- a/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php +++ b/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHub\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B +final readonly class Ok extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A { } diff --git a/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php index aeb14f09fa8..4ec2234a25f 100644 --- a/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHub/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHub\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B +final readonly class Json extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A { } diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index a12ddcc4ae9..fc92c2a62df 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -81813,6 +81813,15 @@ components: - string - 'null' format: date-time + digest: + type: + - string + - 'null' + 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. + examples: + - sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: type: - object @@ -213148,6 +213157,7 @@ components: created_at: '2020-01-10T14:59:22Z' expires_at: '2020-03-21T14:59:22Z' updated_at: '2020-02-21T14:59:22Z' + digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: id: 2332938 repository_id: 1296269 @@ -213164,6 +213174,7 @@ components: created_at: '2020-01-10T14:59:22Z' expires_at: '2020-03-21T14:59:22Z' updated_at: '2020-02-21T14:59:22Z' + digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: id: 2332942 repository_id: 1296269 @@ -213182,6 +213193,7 @@ components: created_at: '2020-01-10T14:59:22Z' expires_at: '2020-01-21T14:59:22Z' updated_at: '2020-01-21T14:59:22Z' + digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: id: 2332938 repository_id: 1296269