Skip to content

[GitHubEnterprise-3.13] Update to 1.1.4-06fa59f66a2537626b799fec04db81b5 from 1.1.4-50b5f868629d9d1260dbd8cc8a0f7a02 #1530

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": "50b5f868629d9d1260dbd8cc8a0f7a02",
"specHash": "06fa59f66a2537626b799fec04db81b5",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -10748,7 +10748,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
"hash": "5ebd59b377fa56da84093860b074238a"
"hash": "75b7740fb512adfb41a711553a784db0"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterpriseTest.php",
Expand Down Expand Up @@ -10820,7 +10820,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
"hash": "612cab6a7bf4459cf097650381dd5e75"
"hash": "613713434ca904649774a4361befc2fc"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterpriseTest.php",
Expand Down Expand Up @@ -14088,7 +14088,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsRequiredReviewerConfiguration.php",
"hash": "47e0a5cbb3905406509b518cd447e517"
"hash": "8b7146363355a95c07cbf18c8466fc6c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest.php",
Expand Down Expand Up @@ -26404,7 +26404,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
"hash": "e38ca79cf72a9ce8e17d8fd2b95704ca"
"hash": "801992ac075569c0e94b45dcad3b8b4e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecurityAdvisories.php",
Expand Down Expand Up @@ -26936,7 +26936,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "50d790ea7d404c399793f46285dec6a4"
"hash": "fb8d914498dc8ddad6eaa4249ed98e34"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
Expand Down Expand Up @@ -27148,11 +27148,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "f324c61f921af29dd138e579e680742d"
"hash": "2fb5474325448bccbcb22bb7d1158ea1"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "ca7adf5daf67b5004f0909656cca8349"
"hash": "54beea339c8099994a522e19c9c55b8c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand All @@ -27168,7 +27168,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
"hash": "d0f6cc583f7b5b3c98ebbcc1a07a01b3"
"hash": "8e5ed19636edd3f61c268f23d3dba92d"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
Expand Down Expand Up @@ -29961,6 +29961,10 @@
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php",
"hash": "b21a2b229d82f916d8ec095470db0021"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsReviewer.php",
"hash": "9fb5f3613d9deee11da6ff5294c91b66"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $filter, string $excludedAttributes, string $enterprise, int $startIndex = 1, int $count = 30): ScimEnterpriseGroupList|WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\EnterpriseAdmin\ListProvisionedGroupsEnterprise($this->responseSchemaValidator, $this->hydrator, $filter, $excludedAttributes, $enterprise, $startIndex, $count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $filter, string $enterprise, int $startIndex = 1, int $count = 30): ScimEnterpriseUserList|WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\EnterpriseAdmin\ListProvisionedIdentitiesEnterprise($this->responseSchemaValidator, $this->hydrator, $filter, $enterprise, $startIndex, $count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ public function getPreReceiveHookForRepo(array $params): RepositoryPreReceiveHoo
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pre_receive_hook_id']);
}

/** @return */
public function listProvisionedGroupsEnterprise(array $params): ScimEnterpriseGroupList|WithoutBody
{
$arguments = [];
Expand Down Expand Up @@ -728,6 +729,7 @@ public function listProvisionedGroupsEnterprise(array $params): ScimEnterpriseGr
return $operator->call($arguments['filter'], $arguments['excludedAttributes'], $arguments['enterprise'], $arguments['startIndex'], $arguments['count']);
}

/** @return */
public function listProvisionedIdentitiesEnterprise(array $params): ScimEnterpriseUserList|WithoutBody
{
$arguments = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct(private Routers $routers)
{
}

/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\HookDeliveryItem>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamDiscussion>|Observable<Schema\SimpleUser>|Observable<Schema\TeamProject>|Observable<Schema\Team>|Observable<Schema\CodeScanningAlertItems>|WithoutBody|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok>|Observable<Schema\RuleSuites>|Observable<Schema\SecretScanningAlert>|Observable<int>|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\CommitActivity>|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\ContributorActivity>|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\TagProtection>|Schema\ScimEnterpriseGroupList|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Schema\ScimEnterpriseUserList|Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>|Observable<Schema\PackageVersion>|Observable<Schema\Event> */
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\HookDeliveryItem>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamDiscussion>|Observable<Schema\SimpleUser>|Observable<Schema\TeamProject>|Observable<Schema\Team>|Observable<Schema\CodeScanningAlertItems>|WithoutBody|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok>|Observable<Schema\RuleSuites>|Observable<Schema\SecretScanningAlert>|Observable<int>|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\CommitActivity>|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\ContributorActivity>|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\TagProtection>|Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>|Observable<Schema\PackageVersion>|Observable<Schema\Event> */
public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyEvents\Response\ApplicationJson\Ok|WithoutBody|GhesLicenseCheck|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|ScimEnterpriseGroupList|ScimEnterpriseUserList|TeamRepository
{
if ($pathChunks[0] === '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ public function updatePreReceiveHookEnforcementForRepo(string $owner, string $re
return $this->operators->enterpriseAdmin👷UpdatePreReceiveHookEnforcementForRepo()->call($owner, $repo, $preReceiveHookId, $params);
}

/** @return */
public function listProvisionedGroupsEnterprise(string $filter, string $excludedAttributes, string $enterprise, int $startIndex, int $count): ScimEnterpriseGroupList|WithoutBody
{
return $this->operators->enterpriseAdmin👷ListProvisionedGroupsEnterprise()->call($filter, $excludedAttributes, $enterprise, $startIndex, $count);
Expand Down Expand Up @@ -812,6 +813,7 @@ public function updateAttributeForEnterpriseGroup(string $scimGroupId, string $e
return $this->operators->enterpriseAdmin👷UpdateAttributeForEnterpriseGroup()->call($scimGroupId, $enterprise, $params);
}

/** @return */
public function listProvisionedIdentitiesEnterprise(string $filter, string $enterprise, int $startIndex, int $count): ScimEnterpriseUserList|WithoutBody
{
return $this->operators->enterpriseAdmin👷ListProvisionedIdentitiesEnterprise()->call($filter, $enterprise, $startIndex, $count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

if ($call === 'GET /scim/v2/enterprises/{enterprise}/Groups') {
return $this->typeResolver->resolve('Schema\\ScimEnterpriseGroupList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
return $this->typeResolver->resolve('');
}

if ($call === 'POST /scim/v2/enterprises/{enterprise}/Groups') {
Expand All @@ -3816,7 +3816,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

if ($call === 'GET /scim/v2/enterprises/{enterprise}/Users') {
return $this->typeResolver->resolve('Schema\\ScimEnterpriseUserList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
return $this->typeResolver->resolve('');
}

if ($call === 'POST /scim/v2/enterprises/{enterprise}/Users') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace ApiClients\Client\GitHubEnterprise\Schema;

use ApiClients\Client\GitHubEnterprise\Schema;
use EventSauce\ObjectHydrator\MapFrom;

final readonly class RepositoryRuleParamsRequiredReviewerConfiguration
Expand All @@ -12,8 +13,7 @@
"title": "RequiredReviewerConfiguration",
"required": [
"file_patterns",
"minimum_approvals",
"reviewer_id"
"minimum_approvals"
],
"type": "object",
"properties": {
Expand All @@ -28,9 +28,27 @@
"type": "integer",
"description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
},
"reviewer_id": {
"type": "string",
"description": "Node ID of the team which must review changes to matching files."
"reviewer": {
"title": "Reviewer",
"required": [
"id",
"type"
],
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "ID of the reviewer which must review changes to matching files."
},
"type": {
"enum": [
"Team"
],
"type": "string",
"description": "The type of the reviewer"
}
},
"description": "A required reviewing team"
}
},
"description": "A reviewing team, and file patterns describing which files they must approve changes to."
Expand All @@ -43,18 +61,20 @@
"generated"
],
"minimum_approvals": 17,
"reviewer_id": "generated"
"reviewer": {
"id": 2,
"type": "Team"
}
}';

/**
* filePatterns: Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files.
* minimumApprovals: Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
* reviewerId: Node ID of the team which must review changes to matching files.
* reviewer: A required reviewing team
*/
public function __construct(#[MapFrom('file_patterns')]
public array $filePatterns, #[MapFrom('minimum_approvals')]
public int $minimumApprovals, #[MapFrom('reviewer_id')]
public string $reviewerId,)
public int $minimumApprovals, public Schema\RepositoryRuleParamsReviewer|null $reviewer,)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Schema;

final readonly class RepositoryRuleParamsReviewer
{
public const SCHEMA_JSON = '{
"title": "Reviewer",
"required": [
"id",
"type"
],
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "ID of the reviewer which must review changes to matching files."
},
"type": {
"enum": [
"Team"
],
"type": "string",
"description": "The type of the reviewer"
}
},
"description": "A required reviewing team"
}';
public const SCHEMA_TITLE = 'Reviewer';
public const SCHEMA_DESCRIPTION = 'A required reviewing team';
public const SCHEMA_EXAMPLE_DATA = '{
"id": 2,
"type": "Team"
}';

/**
* id: ID of the reviewer which must review changes to matching files.
* type: The type of the reviewer
*/
public function __construct(public int $id, public string $type)
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -954,13 +954,13 @@ function authHeader(): string
assertType('Observable<string>', $client->call('STREAM /repos/{owner}/{repo}/zipball/{ref}'));
assertType('', $client->call('POST /repos/{template_owner}/{template_repo}/generate'));
assertType('Observable<Schema\\MinimalRepository>|WithoutBody', $client->call('GET /repositories'));
assertType('Schema\\ScimEnterpriseGroupList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups'));
assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups'));
assertType('', $client->call('POST /scim/v2/enterprises/{enterprise}/Groups'));
assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}'));
assertType('', $client->call('PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}'));
assertType('', $client->call('DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}'));
assertType('', $client->call('PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}'));
assertType('Schema\\ScimEnterpriseUserList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /scim/v2/enterprises/{enterprise}/Users'));
assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Users'));
assertType('', $client->call('POST /scim/v2/enterprises/{enterprise}/Users'));
assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}'));
assertType('', $client->call('PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}'));
Expand Down
Loading
Loading