Skip to content

Commit 0c673db

Browse files
authored
Merge pull request #1296 from php-api-clients/GitHub/from-1.1.4-a9f9373b436a715e38764f5f7b04e767-from-1.1.4-a9f9373b436a715e38764f5f7b04e767
[GitHub] Update to 1.1.4-a9f9373b436a715e38764f5f7b04e767 from 1.1.4-2613abe9bea3162d3f87cc73a6dfdeed
2 parents 0b69ead + 9ce8181 commit 0c673db

File tree

6 files changed

+42
-31
lines changed

6 files changed

+42
-31
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "2613abe9bea3162d3f87cc73a6dfdeed",
2+
"specHash": "a9f9373b436a715e38764f5f7b04e767",
33
"generatedFiles": {
44
"files": [
55
{
@@ -980,7 +980,7 @@
980980
},
981981
{
982982
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentTree.php",
983-
"hash": "4e2aead7a02b5b5c418c9a4db10a91e8"
983+
"hash": "ee7ba109315083cb3caa36860fbb14ed"
984984
},
985985
{
986986
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentDirectory.php",
@@ -2956,7 +2956,7 @@
29562956
},
29572957
{
29582958
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries.php",
2959-
"hash": "c984bd9530ad7628292245c11f899b3d"
2959+
"hash": "78e1da8b8a0fda04a3114e9a7af4bb66"
29602960
},
29612961
{
29622962
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries\/Links.php",
@@ -11676,7 +11676,7 @@
1167611676
},
1167711677
{
1167811678
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
11679-
"hash": "0609c00665283fb0720f16bc99656890"
11679+
"hash": "c7942b67efff87e3886a31a79eb0df76"
1168011680
},
1168111681
{
1168211682
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php",
@@ -26232,7 +26232,7 @@
2623226232
},
2623326233
{
2623426234
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contents\/Path.php",
26235-
"hash": "11f97d45e82fe21171ef657931272cd1"
26235+
"hash": "9112bfa23967f19fccc281d3f24a747c"
2623626236
},
2623726237
{
2623826238
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contributors.php",

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cont
128128

129129
after_sha:
130130

131+
$value = $payload['content'] ?? null;
132+
133+
if ($value === null) {
134+
$properties['content'] = null;
135+
goto after_content;
136+
}
137+
138+
$properties['content'] = $value;
139+
140+
after_content:
141+
131142
$value = $payload['url'] ?? null;
132143

133144
if ($value === null) {
@@ -1184,6 +1195,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
11841195
$sha = $object->sha;
11851196
after_sha: $result['sha'] = $sha;
11861197

1198+
$content = $object->content;
1199+
1200+
if ($content === null) {
1201+
goto after_content;
1202+
}
1203+
1204+
after_content: $result['content'] = $content;
1205+
11871206
$url = $object->url;
11881207
after_url: $result['url'] = $url;
11891208

clients/GitHub/src/Schema/ContentTree.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"sha",
2222
"size",
2323
"type",
24-
"url",
25-
"content",
26-
"encoding"
24+
"url"
2725
],
2826
"type": "object",
2927
"properties": {
@@ -42,6 +40,9 @@
4240
"sha": {
4341
"type": "string"
4442
},
43+
"content": {
44+
"type": "string"
45+
},
4546
"url": {
4647
"type": "string",
4748
"format": "uri"
@@ -96,9 +97,6 @@
9697
"path": {
9798
"type": "string"
9899
},
99-
"content": {
100-
"type": "string"
101-
},
102100
"sha": {
103101
"type": "string"
104102
},
@@ -197,6 +195,7 @@
197195
"name": "generated",
198196
"path": "generated",
199197
"sha": "generated",
198+
"content": "generated",
200199
"url": "https:\\/\\/example.com\\/",
201200
"git_url": "https:\\/\\/example.com\\/",
202201
"html_url": "https:\\/\\/example.com\\/",
@@ -207,7 +206,6 @@
207206
"size": 4,
208207
"name": "generated",
209208
"path": "generated",
210-
"content": "generated",
211209
"sha": "generated",
212210
"url": "https:\\/\\/example.com\\/",
213211
"git_url": "https:\\/\\/example.com\\/",
@@ -224,7 +222,6 @@
224222
"size": 4,
225223
"name": "generated",
226224
"path": "generated",
227-
"content": "generated",
228225
"sha": "generated",
229226
"url": "https:\\/\\/example.com\\/",
230227
"git_url": "https:\\/\\/example.com\\/",
@@ -244,7 +241,7 @@
244241
}
245242
}';
246243

247-
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')]
244+
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')]
248245
public string|null $gitUrl, #[MapFrom('html_url')]
249246
public string|null $htmlUrl, #[MapFrom('download_url')]
250247
public string|null $downloadUrl, public array|null $entries, #[MapFrom('_links')]

clients/GitHub/src/Schema/ContentTree/Entries.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
"path": {
3737
"type": "string"
3838
},
39-
"content": {
40-
"type": "string"
41-
},
4239
"sha": {
4340
"type": "string"
4441
},
@@ -104,7 +101,6 @@
104101
"size": 4,
105102
"name": "generated",
106103
"path": "generated",
107-
"content": "generated",
108104
"sha": "generated",
109105
"url": "https:\\/\\/example.com\\/",
110106
"git_url": "https:\\/\\/example.com\\/",
@@ -117,7 +113,7 @@
117113
}
118114
}';
119115

120-
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')]
116+
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')]
121117
public string|null $gitUrl, #[MapFrom('html_url')]
122118
public string|null $htmlUrl, #[MapFrom('download_url')]
123119
public string|null $downloadUrl, #[MapFrom('_links')]

clients/GitHub/src/Schema/CopilotOrganizationDetails.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
final readonly class CopilotOrganizationDetails
1111
{
1212
public const SCHEMA_JSON = '{
13-
"title": "Copilot Business Organization Details",
13+
"title": "Copilot Organization Details",
1414
"required": [
1515
"seat_breakdown",
1616
"public_code_suggestions",
@@ -97,11 +97,11 @@
9797
"description": "The mode of assigning new seats."
9898
}
9999
},
100-
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.",
100+
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.",
101101
"additionalProperties": true
102102
}';
103-
public const SCHEMA_TITLE = 'Copilot Business Organization Details';
104-
public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.';
103+
public const SCHEMA_TITLE = 'Copilot Organization Details';
104+
public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.';
105105
public const SCHEMA_EXAMPLE_DATA = '{
106106
"seat_breakdown": {
107107
"total": 5,

etc/specs/GitHub/current.spec.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24449,8 +24449,6 @@ paths:
2444924449
Gets your public key, which you need to encrypt secrets. You need to
2445024450
encrypt a secret before you can create or update secrets.
2445124451

24452-
Anyone with read access to the repository can use this endpoint.
24453-
2445424452
If the repository is private, OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
2445524453
tags:
2445624454
- codespaces
@@ -72180,9 +72178,9 @@ components:
7218072178
description: The number of seats that have not used Copilot during the current
7218172179
billing cycle.
7218272180
copilot-organization-details:
72183-
title: Copilot Business Organization Details
72181+
title: Copilot Organization Details
7218472182
description: Information about the seat breakdown and policies set for an organization
72185-
with a Copilot Business subscription.
72183+
with a Copilot Business or Copilot Enterprise subscription.
7218672184
type: object
7218772185
properties:
7218872186
seat_breakdown:
@@ -81378,6 +81376,8 @@ components:
8137881376
type: string
8137981377
sha:
8138081378
type: string
81379+
content:
81380+
type: string
8138181381
url:
8138281382
type: string
8138381383
format: uri
@@ -81409,8 +81409,6 @@ components:
8140981409
type: string
8141081410
path:
8141181411
type: string
81412-
content:
81413-
type: string
8141481412
sha:
8141581413
type: string
8141681414
url:
@@ -81493,8 +81491,6 @@ components:
8149381491
- size
8149481492
- type
8149581493
- url
81496-
- content
81497-
- encoding
8149881494
content-directory:
8149981495
title: Content Directory
8150081496
description: A list of directory items
@@ -203039,6 +203035,9 @@ components:
203039203035
active_this_cycle: 12
203040203036
inactive_this_cycle: 11
203041203037
seat_management_setting: assign_selected
203038+
ide_chat: enabled
203039+
platform_chat: enabled
203040+
cli: enabled
203042203041
public_code_suggestions: block
203043203042
organization-dependabot-secret-paginated:
203044203043
value:

0 commit comments

Comments
 (0)