Skip to content

[GitHub] Update to 1.1.4-5111760c5ff914fc4c83cde28d085440 from 1.1.4-7147a5168a72455e5f4fcbbf004aee1b #1495

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
18 changes: 9 additions & 9 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "7147a5168a72455e5f4fcbbf004aee1b",
"specHash": "5111760c5ff914fc4c83cde28d085440",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -5600,7 +5600,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
"hash": "bd76e67580f50aeab0ee75c4756b986a"
"hash": "a017d588c5b04a9f637de041dd114a34"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php",
Expand Down Expand Up @@ -24424,7 +24424,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php",
"hash": "e9e63e54539847856b0b389cc89aba31"
"hash": "b5af76cf9b440520b40680246dfd76a0"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
Expand Down Expand Up @@ -24856,7 +24856,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "c4a7e9ba89e7cad14e37d8076a8a4817"
"hash": "d5e6cb0b5c43bcb0926a401ff8b31c45"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
Expand Down Expand Up @@ -27632,11 +27632,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "30e758ef83b790f4c37e1a0186d4f74f"
"hash": "cb4f797dc05020132ffc3619950c39e6"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "ec7f8ec78c02c33e4922254efeb7a889"
"hash": "0b533e50490546f5b357153d457ee8f5"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down Expand Up @@ -30840,11 +30840,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrg.php",
"hash": "70a3e1c4e736e1956cce8a3c239565de"
"hash": "ef70ace26d92b5d1c03a885156c39521"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Billing\/GetGithubBillingUsageReportOrg.php",
"hash": "7624d94358737de3424ffb2dc614ce55"
"hash": "4787686505d8e5946b3fdf813b8a5ec5"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrgTest.php",
Expand Down Expand Up @@ -31292,7 +31292,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachEnterpriseConfiguration\/Request\/ApplicationJson.php",
"hash": "186604707177f63d5cd43dc269cc681c"
"hash": "d539be9831b2ef6137042bcae376cd91"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA915022E\/Tiet867AF88E\/Tiet207FA02F\/Tiet074F28B9.php",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ final class GetGithubBillingUsageReportOrg
public const OPERATION_MATCH = 'GET /organizations/{org}/settings/billing/usage';
/**The organization name. The name is not case sensitive. **/
private string $org;
/**If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2024`. Default value is the current year. **/
/**If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year. **/
private int $year;
/**If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. **/
/**If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used. **/
private int $month;
/**If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. **/
/**If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used. **/
private int $day;
/**If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. **/
/**If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used. **/
private int $hour;

public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Organizations\Org\Settings\Billing\Usage $hydrator, string $org, int $year, int $month, int $day, int $hour)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, int $year, int $month, int $day, int $hour): BillingUsageReport
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Billing\GetGithubBillingUsageReportOrg($this->responseSchemaValidator, $this->hydrator, $org, $year, $month, $day, $hour);
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Internal/Router/Get/Billing.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
{
}

/** @return */
public function getGithubBillingUsageReportOrg(array $params): BillingUsageReport
{
$arguments = [];
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/Internal/Router/Get/Six.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function __construct(private Routers $routers)
{
}

/** @return Observable<Schema\CodeSecurityDefaultConfigurations>||Observable<Schema\MarketplacePurchase>|Observable<Schema\RunnerApplication>|WithoutBody|Observable<Schema\HookDeliveryItem>|Observable<Schema\ApiInsightsSubjectStats>|Observable<Schema\ApiInsightsTimeStats>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamRoleAssignment>|Observable<Schema\UserRoleAssignment>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\SimpleUser>|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> */
/** @return Observable<Schema\CodeSecurityDefaultConfigurations>||Observable<Schema\MarketplacePurchase>|Schema\BillingUsageReport|Observable<Schema\RunnerApplication>|WithoutBody|Observable<Schema\HookDeliveryItem>|Observable<Schema\ApiInsightsSubjectStats>|Observable<Schema\ApiInsightsTimeStats>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamRoleAssignment>|Observable<Schema\UserRoleAssignment>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\SimpleUser>|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): iterable|CodeSecurityConfiguration|WithoutBody|BillingUsageReport|ActionsCacheUsageOrgEnterprise|Ok|ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|NetworkConfiguration|NetworkSettings|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Operation/Billing.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public function __construct(private Internal\Operators $operators)
{
}

/** @return */
public function getGithubBillingUsageReportOrg(string $org, int $year, int $month, int $day, int $hour): BillingUsageReport
{
return $this->operators->billing👷GetGithubBillingUsageReportOrg()->call($org, $year, $month, $day, $hour);
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/PHPStan/ClientCallReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

if ($call === 'GET /organizations/{org}/settings/billing/usage') {
return $this->typeResolver->resolve('');
return $this->typeResolver->resolve('Schema\\BillingUsageReport');
}

if ($call === 'GET /orgs/{org}') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"all_without_configurations"
],
"type": "string",
"description": "The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`"
"description": "The type of repositories to attach the configuration to."
}
},
"additionalProperties": false
Expand All @@ -30,7 +30,7 @@
}';

/**
* scope: The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`
* scope: The type of repositories to attach the configuration to.
*/
public function __construct(public string $scope)
{
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/tests/Types/ClientCallReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function authHeader(): string
assertType('', $client->call('DELETE /notifications/threads/{thread_id}/subscription'));
assertType('', $client->call('GET /octocat'));
assertType('Observable<Schema\\OrganizationSimple>|WithoutBody', $client->call('GET /organizations'));
assertType('', $client->call('GET /organizations/{org}/settings/billing/usage'));
assertType('Schema\\BillingUsageReport', $client->call('GET /organizations/{org}/settings/billing/usage'));
assertType('', $client->call('GET /orgs/{org}'));
assertType('', $client->call('DELETE /orgs/{org}'));
assertType('', $client->call('PATCH /orgs/{org}'));
Expand Down
16 changes: 9 additions & 7 deletions etc/specs/GitHub/current.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1949,8 +1949,7 @@ paths:
scope:
type: string
description: The type of repositories to attach the configuration
to. `selected` means the configuration will be attached to only
the repositories specified by `selected_repository_ids`
to.
enum:
- all
- all_without_configurations
Expand Down Expand Up @@ -42597,7 +42596,7 @@ paths:
description: Not Found if repository is not enabled with vulnerability alerts
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
enabledForGitHubApps: true
category: repos
subcategory: repos
put:
Expand Down Expand Up @@ -229529,31 +229528,34 @@ components:
name: year
description: If specified, only return results for a single year. The value
of `year` is an integer with four digits representing a year. For example,
`2024`. Default value is the current year.
`2025`. Default value is the current year.
in: query
required: false
schema:
type: integer
billing-usage-report-month:
name: month
description: If specified, only return results for a single month. The value
of `month` is an integer between `1` and `12`.
of `month` is an integer between `1` and `12`. If no year is specified the
default `year` is used.
in: query
required: false
schema:
type: integer
billing-usage-report-day:
name: day
description: If specified, only return results for a single day. The value of
`day` is an integer between `1` and `31`.
`day` is an integer between `1` and `31`. If no `year` or `month` is specified,
the default `year` and `month` are used.
in: query
required: false
schema:
type: integer
billing-usage-report-hour:
name: hour
description: If specified, only return results for a single hour. The value
of `hour` is an integer between `0` and `23`.
of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day`
is specified, the default `year`, `month`, and `day` are used.
in: query
required: false
schema:
Expand Down
Loading