Skip to content

Commit 5c0435a

Browse files
authored
Merge pull request #1225 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-a64005d8253466da5566a833f48e8713-from-1.1.4-a64005d8253466da5566a833f48e8713
2 parents 6bbb19a + d1a2f95 commit 5c0435a

File tree

9 files changed

+18
-14
lines changed

9 files changed

+18
-14
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "4fef0f9e03cf11aed96c1dfc31630f25",
2+
"specHash": "a64005d8253466da5566a833f48e8713",
33
"generatedFiles": {
44
"files": [
55
{
@@ -4976,7 +4976,7 @@
49764976
},
49774977
{
49784978
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/AddOrUpdateRepoPermissionsInOrg\/Request\/ApplicationJson.php",
4979-
"hash": "b70adabc6ddfc0ac4e9c2b70274585de"
4979+
"hash": "1bb3f932e5c0e3c302221694249d0154"
49804980
},
49814981
{
49824982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/CreateOrUpdateIdpGroupConnectionsInOrg\/Request\/ApplicationJson.php",
@@ -5948,7 +5948,7 @@
59485948
},
59495949
{
59505950
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5951-
"hash": "81c433e68c1b12a3319d411b17dcbc39"
5951+
"hash": "9a93d9aa406ccbbe614cafde1188f2ea"
59525952
},
59535953
{
59545954
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php",
@@ -16672,7 +16672,7 @@
1667216672
},
1667316673
{
1667416674
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/AddSecurityManagerTeam.php",
16675-
"hash": "31009d08df387284e07148fda5ff10e0"
16675+
"hash": "17f82d441ecc7d250849d4406db81c4e"
1667616676
},
1667716677
{
1667816678
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/RemoveSecurityManagerTeam.php",
@@ -26572,7 +26572,7 @@
2657226572
},
2657326573
{
2657426574
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php",
26575-
"hash": "3660de9e7e30c96c607d0939dc1c2d5a"
26575+
"hash": "a135b174133165f7bc7d942f2c7d11ce"
2657626576
},
2657726577
{
2657826578
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php",
@@ -26824,7 +26824,7 @@
2682426824
},
2682526825
{
2682626826
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Six.php",
26827-
"hash": "f668b3e92266043081391c184157b062"
26827+
"hash": "3576153c2e0e06663de2723fc31d948c"
2682826828
},
2682926829
{
2683026830
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Eight.php",
@@ -29872,11 +29872,11 @@
2987229872
},
2987329873
{
2987429874
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29875-
"hash": "1c7d61859ae5740aa03b87e2aee417ab"
29875+
"hash": "8c7f8e1a0105b2d7f1b6584917827fe6"
2987629876
},
2987729877
{
2987829878
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29879-
"hash": "995c5db408fc8b14c01a2e3fb980e5a8"
29879+
"hash": "99a2844d0f28bf7cd062b18aee15340a"
2988029880
},
2988129881
{
2988229882
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/AddSecurityManagerTeam.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2222
{
2323
}
2424

25+
/** @return */
2526
public function call(string $org, string $teamSlug): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\AddSecurityManagerTeam($org, $teamSlug);

clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public function createOrUpdateCustomProperty(array $params): OrgCustomProperty
181181
return $operator->call($arguments['org'], $arguments['custom_property_name'], $params);
182182
}
183183

184+
/** @return */
184185
public function addSecurityManagerTeam(array $params): WithoutBody
185186
{
186187
$arguments = [];

clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Six.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public function __construct(private Routers $routers)
2020
{
2121
}
2222

23-
/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
2423
public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|OrgCustomProperty|RepositoryInvitation|FileCommit|Environment|RepositoryRuleset
2524
{
2625
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Operation/Orgs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ public function listSecurityManagerTeams(string $org): iterable
625625
return $this->operators->orgs👷ListSecurityManagerTeams()->call($org);
626626
}
627627

628+
/** @return */
628629
public function addSecurityManagerTeam(string $org, string $teamSlug): WithoutBody
629630
{
630631
return $this->operators->orgs👷AddSecurityManagerTeam()->call($org, $teamSlug);

clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
17121712
}
17131713

17141714
if ($call === 'PUT /orgs/{org}/security-managers/teams/{team_slug}') {
1715-
return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
1715+
return $this->typeResolver->resolve('');
17161716
}
17171717

17181718
if ($call === 'DELETE /orgs/{org}/security-managers/teams/{team_slug}') {

clients/GitHubEnterpriseCloud/src/Schema/Teams/AddOrUpdateRepoPermissionsInOrg/Request/ApplicationJson.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"properties": {
1212
"permission": {
1313
"type": "string",
14-
"description": "The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team\'s `permission` attribute will be used to determine what permission to grant the team on this repository.",
15-
"default": "push"
14+
"description": "The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team\'s `permission` attribute will be used to determine what permission to grant the team on this repository."
1615
}
1716
}
1817
}';

clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function authHeader(): string
434434
assertType('Observable<Schema\\OrganizationSecretScanningAlert>', $client->call('LIST /orgs/{org}/secret-scanning/alerts'));
435435
assertType('Observable<Schema\\RepositoryAdvisory>', $client->call('GET /orgs/{org}/security-advisories'));
436436
assertType('Observable<Schema\\TeamSimple>', $client->call('GET /orgs/{org}/security-managers'));
437-
assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('PUT /orgs/{org}/security-managers/teams/{team_slug}'));
437+
assertType('', $client->call('PUT /orgs/{org}/security-managers/teams/{team_slug}'));
438438
assertType('', $client->call('DELETE /orgs/{org}/security-managers/teams/{team_slug}'));
439439
assertType('', $client->call('GET /orgs/{org}/settings/billing/actions'));
440440
assertType('', $client->call('GET /orgs/{org}/settings/billing/advanced-security'));

etc/specs/GitHubEnterpriseCloud/current.spec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10362,6 +10362,8 @@ paths:
1036210362
For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
1036310363
For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
1036410364

10365+
The response will contain the total number of new seats that were created and existing seats that were refreshed.
10366+
1036510367
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
1036610368
tags:
1036710369
- copilot
@@ -10525,6 +10527,8 @@ paths:
1052510527
For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
1052610528
For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
1052710529

10530+
The response will contain the total number of new seats that were created and existing seats that were refreshed.
10531+
1052810532
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
1052910533
tags:
1053010534
- copilot
@@ -18453,7 +18457,6 @@ paths:
1845318457
If no permission is specified, the team''s `permission` attribute
1845418458
will be used to determine what permission to grant the team on
1845518459
this repository.'
18456-
default: push
1845718460
examples:
1845818461
default:
1845918462
summary: Adding a team to an organization repository with the write

0 commit comments

Comments
 (0)