Skip to content

Commit cbbf2b3

Browse files
authored
Merge pull request #1237 from php-api-clients/GitHub/from-1.1.4-a5a20c93e8ace47c79943304e911cf70-from-1.1.4-a5a20c93e8ace47c79943304e911cf70
2 parents 9992b65 + d86674f commit cbbf2b3

File tree

9 files changed

+22
-18
lines changed

9 files changed

+22
-18
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "ee23af97204cde51d4c62161bf274df2",
2+
"specHash": "a5a20c93e8ace47c79943304e911cf70",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5612,7 +5612,7 @@
56125612
},
56135613
{
56145614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5615-
"hash": "a8c5db6d9355b53d6d50f183f4b46d3c"
5615+
"hash": "e381fc2ab1bec61faae5d7c7ec67269c"
56165616
},
56175617
{
56185618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -24968,7 +24968,7 @@
2496824968
},
2496924969
{
2497024970
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
24971-
"hash": "ad415b3841dc9b800f1cc7a6c234741d"
24971+
"hash": "d99d9cc5cb5c29690e0b91c96416f739"
2497224972
},
2497324973
{
2497424974
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
@@ -27788,11 +27788,11 @@
2778827788
},
2778927789
{
2779027790
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27791-
"hash": "3337e3cb0fec269eaa0777dec7fb27fb"
27791+
"hash": "4550bdb89fce474ead600772552c8d66"
2779227792
},
2779327793
{
2779427794
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27795-
"hash": "03cab3a7415102e84c221abd10f4d4c2"
27795+
"hash": "d24d1361c76ad52b02ce010e49d18d83"
2779627796
},
2779727797
{
2779827798
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -29652,7 +29652,7 @@
2965229652
},
2965329653
{
2965429654
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetConfigurationsForOrg.php",
29655-
"hash": "c7b24a212c12432e9a4aeee0029906d8"
29655+
"hash": "b9029eb24ca041abb2dc0f82b4d77870"
2965629656
},
2965729657
{
2965829658
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetConfigurationsForOrgTest.php",
@@ -29764,7 +29764,7 @@
2976429764
},
2976529765
{
2976629766
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php",
29767-
"hash": "57e29c9da4fd2c0fcd7883610028402e"
29767+
"hash": "0e5a6895e8d6283c426d89c9c3fbde0d"
2976829768
},
2976929769
{
2977029770
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleEdited\/Changes\/LockAllowsForkSync.php",
@@ -29812,7 +29812,7 @@
2981229812
},
2981329813
{
2981429814
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
29815-
"hash": "5058da12ea42949d4f191bd9dd481708"
29815+
"hash": "1dc44fb96797b0a5a6285ed99a7607f0"
2981629816
},
2981729817
{
2981829818
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php",
@@ -29832,7 +29832,7 @@
2983229832
},
2983329833
{
2983429834
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
29835-
"hash": "e24885ddb3664c0684e653da102206e0"
29835+
"hash": "89a797debae8bbbb18e991e556957a09"
2983629836
},
2983729837
{
2983829838
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",

clients/GitHub/src/Internal/Operator/CodeSecurity/GetConfigurationsForOrg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return iterable<int,Schema\CodeSecurityConfiguration> */
27+
/** @return Observable<Schema\CodeSecurityConfiguration> */
2828
public function call(string $org, string $before, string $after, string $targetType = 'all', int $perPage = 30): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeSecurity\GetConfigurationsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $before, $after, $targetType, $perPage);

clients/GitHub/src/Internal/Router/Get/CodeSecurity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
2121
{
2222
}
2323

24-
/** @return iterable<int,Schema\CodeSecurityConfiguration> */
24+
/** @return Observable<Schema\CodeSecurityConfiguration> */
2525
public function getConfigurationsForOrg(array $params): iterable
2626
{
2727
$arguments = [];

clients/GitHub/src/Internal/Router/Get/Five.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(private Routers $routers)
5050
{
5151
}
5252

53-
/** @return |Observable<Schema\CopilotUsageMetrics>|Observable<Schema\DependabotAlertWithRepository>|WithoutBody|Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\MarketplacePurchase>|Observable<Schema\Event>|Schema\BasicError|Observable<Schema\CodeScanningOrganizationAlertItems>|iterable<int,Schema\CodeSecurityConfiguration>|Observable<Schema\Package>|Observable<Schema\OrgCustomProperty>|Observable<Schema\OrgRepoCustomPropertyValues>|Observable<Schema\RuleSuites>|Observable<Schema\ProjectCard>|Observable<Schema\Activity>|Observable<Schema\SimpleUser>|Observable<Schema\Autolink>|Observable<Schema\ShortBranch>|Observable<Schema\Collaborator>|Observable<Schema\CommitComment>|Observable<Schema\Commit>|Observable<Schema\Contributor>|Observable<Schema\Deployment>|Observable<Schema\MinimalRepository>|Observable<Schema\Hook>|Observable<Schema\RepositoryInvitation>|Observable<Schema\Issue>|Observable<Schema\DeployKey>|Observable<Schema\Label>|Observable<Schema\Milestone>|Observable<Schema\Thread>|Observable<Schema\Project>|Observable<Schema\PullRequestSimple>|Observable<Schema\Release>|Observable<Schema\RepositoryRuleset>|Observable<Schema\RepositoryAdvisory>|Observable<Schema\Tag>|Observable<Schema\Team> */
53+
/** @return |Observable<Schema\CopilotUsageMetrics>|Observable<Schema\DependabotAlertWithRepository>|WithoutBody|Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\MarketplacePurchase>|Observable<Schema\Event>|Schema\BasicError|Observable<Schema\CodeScanningOrganizationAlertItems>|Observable<Schema\CodeSecurityConfiguration>|Observable<Schema\Package>|Observable<Schema\OrgCustomProperty>|Observable<Schema\OrgRepoCustomPropertyValues>|Observable<Schema\RuleSuites>|Observable<Schema\ProjectCard>|Observable<Schema\Activity>|Observable<Schema\SimpleUser>|Observable<Schema\Autolink>|Observable<Schema\ShortBranch>|Observable<Schema\Collaborator>|Observable<Schema\CommitComment>|Observable<Schema\Commit>|Observable<Schema\Contributor>|Observable<Schema\Deployment>|Observable<Schema\MinimalRepository>|Observable<Schema\Hook>|Observable<Schema\RepositoryInvitation>|Observable<Schema\Issue>|Observable<Schema\DeployKey>|Observable<Schema\Label>|Observable<Schema\Milestone>|Observable<Schema\Thread>|Observable<Schema\Project>|Observable<Schema\PullRequestSimple>|Observable<Schema\Release>|Observable<Schema\RepositoryRuleset>|Observable<Schema\RepositoryAdvisory>|Observable<Schema\Tag>|Observable<Schema\Team> */
5454
public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject
5555
{
5656
if ($pathChunks[0] === '') {

clients/GitHub/src/Operation/CodeSecurity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(private Internal\Operators $operators)
1717
{
1818
}
1919

20-
/** @return iterable<int,Schema\CodeSecurityConfiguration> */
20+
/** @return Observable<Schema\CodeSecurityConfiguration> */
2121
public function getConfigurationsForOrg(string $org, string $before, string $after, string $targetType, int $perPage): iterable
2222
{
2323
return $this->operators->codeSecurity👷GetConfigurationsForOrg()->call($org, $before, $after, $targetType, $perPage);

clients/GitHub/src/PHPStan/ClientCallReturnTypes.php

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

686686
if ($call === 'GET /orgs/{org}/code-security/configurations') {
687-
return $this->typeResolver->resolve('iterable<int,Schema\\CodeSecurityConfiguration>');
687+
return $this->typeResolver->resolve('Observable<Schema\\CodeSecurityConfiguration>');
688688
}
689689

690690
if ($call === 'POST /orgs/{org}/code-security/configurations') {

clients/GitHub/src/Schema/CodeSecurityConfigurationRepositories.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
"attached",
1717
"attaching",
1818
"detached",
19+
"removed",
1920
"enforced",
2021
"failed",
21-
"updating"
22+
"updating",
23+
"removed_by_enterprise"
2224
],
2325
"type": "string",
2426
"description": "The attachment status of the code security configuration on the repository."
@@ -574,7 +576,7 @@
574576
public const SCHEMA_TITLE = '';
575577
public const SCHEMA_DESCRIPTION = 'Repositories associated with a code security configuration and attachment status';
576578
public const SCHEMA_EXAMPLE_DATA = '{
577-
"status": "updating",
579+
"status": "removed_by_enterprise",
578580
"repository": {
579581
"id": 1296269,
580582
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",

clients/GitHub/tests/Types/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function authHeader(): string
177177
assertType('', $client->call('DELETE /orgs/{org}/blocks/{username}'));
178178
assertType('Observable<Schema\\CodeScanningOrganizationAlertItems>', $client->call('GET /orgs/{org}/code-scanning/alerts'));
179179
assertType('Observable<Schema\\CodeScanningOrganizationAlertItems>', $client->call('LIST /orgs/{org}/code-scanning/alerts'));
180-
assertType('iterable<int,Schema\\CodeSecurityConfiguration>', $client->call('GET /orgs/{org}/code-security/configurations'));
180+
assertType('Observable<Schema\\CodeSecurityConfiguration>', $client->call('GET /orgs/{org}/code-security/configurations'));
181181
assertType('', $client->call('POST /orgs/{org}/code-security/configurations'));
182182
assertType('Observable<Schema\\CodeSecurityDefaultConfigurations>|WithoutBody', $client->call('GET /orgs/{org}/code-security/configurations/defaults'));
183183
assertType('', $client->call('DELETE /orgs/{org}/code-security/configurations/detach'));

etc/specs/GitHub/current.spec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14734,7 +14734,7 @@ paths:
1473414734
summary: Enable or disable a security feature for an organization
1473514735
description: |-
1473614736
> [!WARNING]
14737-
> **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
14737+
> **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).
1473814738

1473914739
Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
1474014740

@@ -71139,9 +71139,11 @@ components:
7113971139
- attached
7114071140
- attaching
7114171141
- detached
71142+
- removed
7114271143
- enforced
7114371144
- failed
7114471145
- updating
71146+
- removed_by_enterprise
7114571147
repository:
7114671148
"$ref": "#/components/schemas/simple-repository"
7114771149
codespace-machine:

0 commit comments

Comments
 (0)