Skip to content

[GitHubEnterpriseCloud] Update to 1.1.4-105708433ef2827723e57d66a0f7645f from 1.1.4-bb053ea7f78df19d2e4d4872d9eed9c7 #1297

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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "bb053ea7f78df19d2e4d4872d9eed9c7",
"specHash": "105708433ef2827723e57d66a0f7645f",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -1084,7 +1084,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree.php",
"hash": "92bae7f8e73369aa1647a20e7b7f7413"
"hash": "acbe779a9a2921c6662c39c607db7db6"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentDirectory.php",
Expand Down Expand Up @@ -3168,7 +3168,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries.php",
"hash": "dfcc0a9422d3a4120e047644d57494f9"
"hash": "e5f199238272e94f610223f795b8dc4d"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries\/Links.php",
Expand Down Expand Up @@ -12148,7 +12148,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
"hash": "88ad22fa6ec99c5af4f31d6af65647d0"
"hash": "b497d15e1717d1fd41a938f9ae90917f"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php",
Expand Down Expand Up @@ -28084,7 +28084,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contents\/Path.php",
"hash": "a9ff5b66201def8dc5f147963181c368"
"hash": "d796ec440fd1b75f83c8bc1312cd9cd7"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contributors.php",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S

after_sha:

$value = $payload['content'] ?? null;

if ($value === null) {
$properties['content'] = null;
goto after_content;
}

$properties['content'] = $value;

after_content:

$value = $payload['url'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -1184,6 +1195,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
$sha = $object->sha;
after_sha: $result['sha'] = $sha;

$content = $object->content;

if ($content === null) {
goto after_content;
}

after_content: $result['content'] = $content;

$url = $object->url;
after_url: $result['url'] = $url;

Expand Down
15 changes: 6 additions & 9 deletions clients/GitHubEnterpriseCloud/src/Schema/ContentTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"sha",
"size",
"type",
"url",
"content",
"encoding"
"url"
],
"type": "object",
"properties": {
Expand All @@ -42,6 +40,9 @@
"sha": {
"type": "string"
},
"content": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
Expand Down Expand Up @@ -96,9 +97,6 @@
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"sha": {
"type": "string"
},
Expand Down Expand Up @@ -197,6 +195,7 @@
"name": "generated",
"path": "generated",
"sha": "generated",
"content": "generated",
"url": "https:\\/\\/example.com\\/",
"git_url": "https:\\/\\/example.com\\/",
"html_url": "https:\\/\\/example.com\\/",
Expand All @@ -207,7 +206,6 @@
"size": 4,
"name": "generated",
"path": "generated",
"content": "generated",
"sha": "generated",
"url": "https:\\/\\/example.com\\/",
"git_url": "https:\\/\\/example.com\\/",
Expand All @@ -224,7 +222,6 @@
"size": 4,
"name": "generated",
"path": "generated",
"content": "generated",
"sha": "generated",
"url": "https:\\/\\/example.com\\/",
"git_url": "https:\\/\\/example.com\\/",
Expand All @@ -244,7 +241,7 @@
}
}';

public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')]
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string|null $content, public string $url, #[MapFrom('git_url')]
public string|null $gitUrl, #[MapFrom('html_url')]
public string|null $htmlUrl, #[MapFrom('download_url')]
public string|null $downloadUrl, public array|null $entries, #[MapFrom('_links')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"sha": {
"type": "string"
},
Expand Down Expand Up @@ -104,7 +101,6 @@
"size": 4,
"name": "generated",
"path": "generated",
"content": "generated",
"sha": "generated",
"url": "https:\\/\\/example.com\\/",
"git_url": "https:\\/\\/example.com\\/",
Expand All @@ -117,7 +113,7 @@
}
}';

public function __construct(public string $type, public int $size, public string $name, public string $path, public string|null $content, public string $sha, public string $url, #[MapFrom('git_url')]
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')]
public string|null $gitUrl, #[MapFrom('html_url')]
public string|null $htmlUrl, #[MapFrom('download_url')]
public string|null $downloadUrl, #[MapFrom('_links')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
final readonly class CopilotOrganizationDetails
{
public const SCHEMA_JSON = '{
"title": "Copilot Business Organization Details",
"title": "Copilot Organization Details",
"required": [
"seat_breakdown",
"public_code_suggestions",
Expand Down Expand Up @@ -97,11 +97,11 @@
"description": "The mode of assigning new seats."
}
},
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.",
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.",
"additionalProperties": true
}';
public const SCHEMA_TITLE = 'Copilot Business Organization Details';
public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.';
public const SCHEMA_TITLE = 'Copilot Organization Details';
public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.';
public const SCHEMA_EXAMPLE_DATA = '{
"seat_breakdown": {
"total": 5,
Expand Down
15 changes: 7 additions & 8 deletions etc/specs/GitHubEnterpriseCloud/current.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28506,8 +28506,6 @@ paths:
Gets your public key, which you need to encrypt secrets. You need to
encrypt a secret before you can create or update secrets.

Anyone with read access to the repository can use this endpoint.

If the repository is private, OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- codespaces
Expand Down Expand Up @@ -79351,9 +79349,9 @@ components:
description: The number of seats that have not used Copilot during the current
billing cycle.
copilot-organization-details:
title: Copilot Business Organization Details
title: Copilot Organization Details
description: Information about the seat breakdown and policies set for an organization
with a Copilot Business subscription.
with a Copilot Business or Copilot Enterprise subscription.
type: object
properties:
seat_breakdown:
Expand Down Expand Up @@ -88852,6 +88850,8 @@ components:
type: string
sha:
type: string
content:
type: string
url:
type: string
format: uri
Expand Down Expand Up @@ -88883,8 +88883,6 @@ components:
type: string
path:
type: string
content:
type: string
sha:
type: string
url:
Expand Down Expand Up @@ -88967,8 +88965,6 @@ components:
- size
- type
- url
- content
- encoding
content-directory:
title: Content Directory
description: A list of directory items
Expand Down Expand Up @@ -212183,6 +212179,9 @@ components:
active_this_cycle: 12
inactive_this_cycle: 11
seat_management_setting: assign_selected
ide_chat: enabled
platform_chat: enabled
cli: enabled
public_code_suggestions: block
credential-authorization-items:
value:
Expand Down
Loading