Skip to content

[GitHub] Update to 1.1.4-95c17fdaedbd73d404bbf04c1d953250 from 1.1.4-ce11a30340deb9560fca3f8049e3f57b #1526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "ce11a30340deb9560fca3f8049e3f57b",
"specHash": "95c17fdaedbd73d404bbf04c1d953250",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -684,7 +684,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Artifact.php",
"hash": "fd09cd8c7bcdeda855b354f19aa2b8b1"
"hash": "47b70e77957d4716e9027dfa01a957cb"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsCacheList.php",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
14 changes: 13 additions & 1 deletion clients/GitHub/src/Schema/Artifact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -155,14 +166,15 @@
* 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')]
public int $sizeInBytes, public string $url, #[MapFrom('archive_download_url')]
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,)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
12 changes: 12 additions & 0 deletions etc/specs/GitHub/current.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading