Skip to content

Commit 1dbd2b9

Browse files
authored
Merge pull request #1495 from php-api-clients/GitHub/from-1.1.4-5111760c5ff914fc4c83cde28d085440-from-1.1.4-5111760c5ff914fc4c83cde28d085440
2 parents 200f398 + 101dd64 commit 1dbd2b9

File tree

10 files changed

+27
-28
lines changed

10 files changed

+27
-28
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": "7147a5168a72455e5f4fcbbf004aee1b",
2+
"specHash": "5111760c5ff914fc4c83cde28d085440",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5600,7 +5600,7 @@
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
5603-
"hash": "bd76e67580f50aeab0ee75c4756b986a"
5603+
"hash": "a017d588c5b04a9f637de041dd114a34"
56045604
},
56055605
{
56065606
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php",
@@ -24424,7 +24424,7 @@
2442424424
},
2442524425
{
2442624426
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php",
24427-
"hash": "e9e63e54539847856b0b389cc89aba31"
24427+
"hash": "b5af76cf9b440520b40680246dfd76a0"
2442824428
},
2442924429
{
2443024430
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
@@ -24856,7 +24856,7 @@
2485624856
},
2485724857
{
2485824858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
24859-
"hash": "c4a7e9ba89e7cad14e37d8076a8a4817"
24859+
"hash": "d5e6cb0b5c43bcb0926a401ff8b31c45"
2486024860
},
2486124861
{
2486224862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -27632,11 +27632,11 @@
2763227632
},
2763327633
{
2763427634
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27635-
"hash": "30e758ef83b790f4c37e1a0186d4f74f"
27635+
"hash": "cb4f797dc05020132ffc3619950c39e6"
2763627636
},
2763727637
{
2763827638
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27639-
"hash": "ec7f8ec78c02c33e4922254efeb7a889"
27639+
"hash": "0b533e50490546f5b357153d457ee8f5"
2764027640
},
2764127641
{
2764227642
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30840,11 +30840,11 @@
3084030840
},
3084130841
{
3084230842
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrg.php",
30843-
"hash": "70a3e1c4e736e1956cce8a3c239565de"
30843+
"hash": "ef70ace26d92b5d1c03a885156c39521"
3084430844
},
3084530845
{
3084630846
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Billing\/GetGithubBillingUsageReportOrg.php",
30847-
"hash": "7624d94358737de3424ffb2dc614ce55"
30847+
"hash": "4787686505d8e5946b3fdf813b8a5ec5"
3084830848
},
3084930849
{
3085030850
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrgTest.php",
@@ -31292,7 +31292,7 @@
3129231292
},
3129331293
{
3129431294
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachEnterpriseConfiguration\/Request\/ApplicationJson.php",
31295-
"hash": "186604707177f63d5cd43dc269cc681c"
31295+
"hash": "d539be9831b2ef6137042bcae376cd91"
3129631296
},
3129731297
{
3129831298
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA915022E\/Tiet867AF88E\/Tiet207FA02F\/Tiet074F28B9.php",

clients/GitHub/src/Internal/Operation/Billing/GetGithubBillingUsageReportOrg.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ final class GetGithubBillingUsageReportOrg
2424
public const OPERATION_MATCH = 'GET /organizations/{org}/settings/billing/usage';
2525
/**The organization name. The name is not case sensitive. **/
2626
private string $org;
27-
/**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. **/
27+
/**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. **/
2828
private int $year;
29-
/**If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. **/
29+
/**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. **/
3030
private int $month;
31-
/**If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. **/
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. **/
3232
private int $day;
33-
/**If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. **/
33+
/**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. **/
3434
private int $hour;
3535

3636
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)

clients/GitHub/src/Internal/Operator/Billing/GetGithubBillingUsageReportOrg.php

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

27-
/** @return */
2827
public function call(string $org, int $year, int $month, int $day, int $hour): BillingUsageReport
2928
{
3029
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Billing\GetGithubBillingUsageReportOrg($this->responseSchemaValidator, $this->hydrator, $org, $year, $month, $day, $hour);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
2222
{
2323
}
2424

25-
/** @return */
2625
public function getGithubBillingUsageReportOrg(array $params): BillingUsageReport
2726
{
2827
$arguments = [];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct(private Routers $routers)
8282
{
8383
}
8484

85-
/** @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> */
85+
/** @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> */
8686
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
8787
{
8888
if ($pathChunks[0] === '') {

clients/GitHub/src/Operation/Billing.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public function __construct(private Internal\Operators $operators)
1616
{
1717
}
1818

19-
/** @return */
2019
public function getGithubBillingUsageReportOrg(string $org, int $year, int $month, int $day, int $hour): BillingUsageReport
2120
{
2221
return $this->operators->billing👷GetGithubBillingUsageReportOrg()->call($org, $year, $month, $day, $hour);

clients/GitHub/src/PHPStan/ClientCallReturnTypes.php

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

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

494494
if ($call === 'GET /orgs/{org}') {

clients/GitHub/src/Schema/CodeSecurity/AttachEnterpriseConfiguration/Request/ApplicationJson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"all_without_configurations"
1919
],
2020
"type": "string",
21-
"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`"
21+
"description": "The type of repositories to attach the configuration to."
2222
}
2323
},
2424
"additionalProperties": false
@@ -30,7 +30,7 @@
3030
}';
3131

3232
/**
33-
* 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`
33+
* scope: The type of repositories to attach the configuration to.
3434
*/
3535
public function __construct(public string $scope)
3636
{

clients/GitHub/tests/Types/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function authHeader(): string
128128
assertType('', $client->call('DELETE /notifications/threads/{thread_id}/subscription'));
129129
assertType('', $client->call('GET /octocat'));
130130
assertType('Observable<Schema\\OrganizationSimple>|WithoutBody', $client->call('GET /organizations'));
131-
assertType('', $client->call('GET /organizations/{org}/settings/billing/usage'));
131+
assertType('Schema\\BillingUsageReport', $client->call('GET /organizations/{org}/settings/billing/usage'));
132132
assertType('', $client->call('GET /orgs/{org}'));
133133
assertType('', $client->call('DELETE /orgs/{org}'));
134134
assertType('', $client->call('PATCH /orgs/{org}'));

etc/specs/GitHub/current.spec.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,8 +1949,7 @@ paths:
19491949
scope:
19501950
type: string
19511951
description: The type of repositories to attach the configuration
1952-
to. `selected` means the configuration will be attached to only
1953-
the repositories specified by `selected_repository_ids`
1952+
to.
19541953
enum:
19551954
- all
19561955
- all_without_configurations
@@ -42597,7 +42596,7 @@ paths:
4259742596
description: Not Found if repository is not enabled with vulnerability alerts
4259842597
x-github:
4259942598
githubCloudOnly: false
42600-
enabledForGitHubApps: false
42599+
enabledForGitHubApps: true
4260142600
category: repos
4260242601
subcategory: repos
4260342602
put:
@@ -229529,31 +229528,34 @@ components:
229529229528
name: year
229530229529
description: If specified, only return results for a single year. The value
229531229530
of `year` is an integer with four digits representing a year. For example,
229532-
`2024`. Default value is the current year.
229531+
`2025`. Default value is the current year.
229533229532
in: query
229534229533
required: false
229535229534
schema:
229536229535
type: integer
229537229536
billing-usage-report-month:
229538229537
name: month
229539229538
description: If specified, only return results for a single month. The value
229540-
of `month` is an integer between `1` and `12`.
229539+
of `month` is an integer between `1` and `12`. If no year is specified the
229540+
default `year` is used.
229541229541
in: query
229542229542
required: false
229543229543
schema:
229544229544
type: integer
229545229545
billing-usage-report-day:
229546229546
name: day
229547229547
description: If specified, only return results for a single day. The value of
229548-
`day` is an integer between `1` and `31`.
229548+
`day` is an integer between `1` and `31`. If no `year` or `month` is specified,
229549+
the default `year` and `month` are used.
229549229550
in: query
229550229551
required: false
229551229552
schema:
229552229553
type: integer
229553229554
billing-usage-report-hour:
229554229555
name: hour
229555229556
description: If specified, only return results for a single hour. The value
229556-
of `hour` is an integer between `0` and `23`.
229557+
of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day`
229558+
is specified, the default `year`, `month`, and `day` are used.
229557229559
in: query
229558229560
required: false
229559229561
schema:

0 commit comments

Comments
 (0)