Skip to content
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
26 changes: 13 additions & 13 deletions clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "1e75d6425ed4e4aae7d5a75047e1095c",
"specHash": "041810bc991810fa97b34eae71cba9ac",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -52,7 +52,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/HookDeliveryItem.php",
"hash": "c7b80e781c190dfb3ab7828352aa3df8"
"hash": "b2613c3f77da7c9551e96c47342fcc71"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ScimError.php",
Expand All @@ -72,7 +72,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/HookDelivery.php",
"hash": "183e07d14181382391ce1f8b7dbfb892"
"hash": "2ac3b6c4675f2b98df7453b3a626a56b"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Enterprise.php",
Expand Down Expand Up @@ -5984,7 +5984,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
"hash": "45b5ecd6f7e191ea93d6a89563cd57bf"
"hash": "ea53d5900ef20eeca40759702d1d7333"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
Expand All @@ -6008,7 +6008,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Pulls.php",
"hash": "195c50db109fb94083e2cc1d7d0903a1"
"hash": "de2c25c9cb75e3ac17a7889ad5296a73"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
Expand Down Expand Up @@ -22032,7 +22032,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Pulls\/Get.php",
"hash": "e2b45b79358b41962e580a172359cde7"
"hash": "3cf2d689f271c48968cfa819c67655d7"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Pulls\/GetTest.php",
Expand Down Expand Up @@ -26240,7 +26240,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
"hash": "99d6a711d7f91b5c5b286d72e3ea828c"
"hash": "02b07d628ac64e573f60f753c10960dd"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php",
Expand Down Expand Up @@ -26728,7 +26728,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "1cef6ff39abe5e8e2b67bf2e0e259b54"
"hash": "28c7d64a38f9ae61536e5ff3af0ea112"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
Expand Down Expand Up @@ -26964,7 +26964,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Deliveries\/DeliveryId.php",
"hash": "d25230005c132cf9560267b297bc952f"
"hash": "60e7d01819dc6b010bf608a39c80e130"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Deliveries\/DeliveryId\/Attempts.php",
Expand Down Expand Up @@ -27464,7 +27464,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Hooks\/HookId\/Deliveries\/DeliveryId.php",
"hash": "564f687db19e800b94d81ccb3a240ecc"
"hash": "33ede7be074b6b474f82cb429208215b"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Hooks\/HookId\/Deliveries\/DeliveryId\/Attempts.php",
Expand Down Expand Up @@ -28312,7 +28312,7 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Hooks\/HookId\/Deliveries\/DeliveryId.php",
"hash": "d73eb986195dda5530f3e5fada8f25c5"
"hash": "915bd75a10bdea9946c166394532c048"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Hooks\/HookId\/Deliveries\/DeliveryId\/Attempts.php",
Expand Down Expand Up @@ -29952,11 +29952,11 @@
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "60a4ffcd33ebdd26952492229d3c5366"
"hash": "9804e3abd8d57ebf2ca49444b94a2844"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "2761e873802b9bc95ac726085f88df59"
"hash": "cc212d9689dac720d02ca8d739e5fbed"
},
{
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S

after_repositoryId:

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

if ($value === null) {
$properties['throttledAt'] = null;
goto after_throttledAt;
}

$properties['throttledAt'] = $value;

after_throttledAt:

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

if ($value === null) {
Expand Down Expand Up @@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou

after_repositoryId: $result['repository_id'] = $repositoryId;

$throttledAt = $object->throttledAt;

if ($throttledAt === null) {
goto after_throttledAt;
}

after_throttledAt: $result['throttled_at'] = $throttledAt;

$url = $object->url;

if ($url === null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S

after_repositoryId:

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

if ($value === null) {
$properties['throttledAt'] = null;
goto after_throttledAt;
}

$properties['throttledAt'] = $value;

after_throttledAt:

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

if ($value === null) {
Expand Down Expand Up @@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou

after_repositoryId: $result['repository_id'] = $repositoryId;

$throttledAt = $object->throttledAt;

if ($throttledAt === null) {
goto after_throttledAt;
}

after_throttledAt: $result['throttled_at'] = $throttledAt;

$url = $object->url;

if ($url === null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S

after_repositoryId:

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

if ($value === null) {
$properties['throttledAt'] = null;
goto after_throttledAt;
}

$properties['throttledAt'] = $value;

after_throttledAt:

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

if ($value === null) {
Expand Down Expand Up @@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou

after_repositoryId: $result['repository_id'] = $repositoryId;

$throttledAt = $object->throttledAt;

if ($throttledAt === null) {
goto after_throttledAt;
}

after_throttledAt: $result['throttled_at'] = $throttledAt;

$url = $object->url;

if ($url === null) {
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 $owner, string $repo, int $pullNumber): PullRequest|WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Pulls\Get($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function listReviewCommentsForRepo(array $params): iterable
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['direction'], $arguments['since'], $arguments['per_page'], $arguments['page']);
}

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

/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\MarketplacePurchase>|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\TeamProject>|Observable<Schema\CodeScanningAlertItems>|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\PorterAuthor>|Observable<Schema\PorterLargeFile>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Schema\PullRequest|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|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> */
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\MarketplacePurchase>|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\TeamProject>|Observable<Schema\CodeScanningAlertItems>|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\PorterAuthor>|Observable<Schema\PorterLargeFile>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|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): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|ActionsBillingUsage|AdvancedSecurityActiveCommitters|PackagesBillingUsage|CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|WithoutBody|CopilotSeatDetails|Package|OrgCustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 1 addition & 0 deletions clients/GitHubEnterpriseCloud/src/Operation/Pulls.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function updateReviewComment(string $owner, string $repo, int $commentId,
return $this->operators->pulls👷UpdateReviewComment()->call($owner, $repo, $commentId, $params);
}

/** @return */
public function get(string $owner, string $repo, int $pullNumber): PullRequest|WithoutBody
{
return $this->operators->pulls👷Get()->call($owner, $repo, $pullNumber);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3568,7 +3568,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}') {
return $this->typeResolver->resolve('Schema\\PullRequest|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
return $this->typeResolver->resolve('');
}

if ($call === 'PATCH /repos/{owner}/{repo}/pulls/{pull_number}') {
Expand Down
16 changes: 15 additions & 1 deletion clients/GitHubEnterpriseCloud/src/Schema/HookDelivery.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@
123
]
},
"throttled_at": {
"type": [
"string",
"null"
],
"description": "Time when the webhook delivery was throttled.",
"format": "date-time",
"examples": [
"2021-05-12T20:33:44Z"
]
},
"url": {
"type": "string",
"description": "The URL target of the delivery.",
Expand Down Expand Up @@ -189,6 +200,7 @@
"action": "opened",
"installation_id": 123,
"repository_id": 123,
"throttled_at": "2021-05-12T20:33:44Z",
"url": "https:\\/\\/www.example.com",
"request": {
"headers": [],
Expand All @@ -212,13 +224,15 @@
* action: The type of activity for the event that triggered the delivery.
* installationId: The id of the GitHub App installation associated with this event.
* repositoryId: The id of the repository associated with this event.
* throttledAt: Time when the webhook delivery was throttled.
* url: The URL target of the delivery.
*/
public function __construct(public int $id, public string $guid, #[MapFrom('delivered_at')]
public string $deliveredAt, public bool $redelivery, public int|float $duration, public string $status, #[MapFrom('status_code')]
public int $statusCode, public string $event, public string|null $action, #[MapFrom('installation_id')]
public int|null $installationId, #[MapFrom('repository_id')]
public int|null $repositoryId, public string|null $url, public Schema\HookDelivery\Request $request, public Schema\HookDelivery\Response $response,)
public int|null $repositoryId, #[MapFrom('throttled_at')]
public string|null $throttledAt, public string|null $url, public Schema\HookDelivery\Request $request, public Schema\HookDelivery\Response $response,)
{
}
}
18 changes: 16 additions & 2 deletions clients/GitHubEnterpriseCloud/src/Schema/HookDeliveryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@
"examples": [
123
]
},
"throttled_at": {
"type": [
"string",
"null"
],
"description": "Time when the webhook delivery was throttled.",
"format": "date-time",
"examples": [
"2021-05-12T20:33:44Z"
]
}
},
"description": "Delivery made by a webhook, without request and response information."
Expand All @@ -128,7 +139,8 @@
"event": "issues",
"action": "opened",
"installation_id": 123,
"repository_id": 123
"repository_id": 123,
"throttled_at": "2021-05-12T20:33:44Z"
}';

/**
Expand All @@ -143,12 +155,14 @@
* action: The type of activity for the event that triggered the delivery.
* installationId: The id of the GitHub App installation associated with this event.
* repositoryId: The id of the repository associated with this event.
* throttledAt: Time when the webhook delivery was throttled.
*/
public function __construct(public int $id, public string $guid, #[MapFrom('delivered_at')]
public string $deliveredAt, public bool $redelivery, public int|float $duration, public string $status, #[MapFrom('status_code')]
public int $statusCode, public string $event, public string|null $action, #[MapFrom('installation_id')]
public int|null $installationId, #[MapFrom('repository_id')]
public int|null $repositoryId,)
public int|null $repositoryId, #[MapFrom('throttled_at')]
public string|null $throttledAt,)
{
}
}
Loading