diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 0a928263fdb..fdc6587b43c 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "85662c80b53f38fb1fdf4e581c839168", + "specHash": "4bfe6378be3ffa1aed95dac111e07ebb", "generatedFiles": { "files": [ { @@ -600,11 +600,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php", - "hash": "91c7ac9573eb32fb3215679ff2902ba7" + "hash": "8519cdec25b5fee363ea63e478fc3cb1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "b148af999781e1841d4bbeb1729b0bb5" + "hash": "e94cb4b94aa570dacbc81a5fa6877dad" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -4612,11 +4612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "b189dccda6487b31c78efbd3547ff0c5" + "hash": "7d5d76e6c4bd5b18815d84d687645aea" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "5ded3557f7313bbfaa871698a53da4fd" + "hash": "1522d3c75fc09e21c47ddd8ec31d128f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5132,7 +5132,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson.php", - "hash": "58d9cbfc582af8b196b8c88b0f0d48fe" + "hash": "bb6b1baeb9a4e2d9791a30e6efd19ac5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson\/Labels\/One.php", @@ -5148,7 +5148,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/Update\/Request\/ApplicationJson.php", - "hash": "fbf6609d1b12d0daa1e76dfec693c212" + "hash": "8d5c34465f28b7faba9cd19b2c57e24a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/AddAssignees\/Request\/ApplicationJson.php", @@ -5320,11 +5320,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "3b6ef56edb2b344b2735ed73210447c0" + "hash": "45024c3728f6216dfa91bb2ff7784c65" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "dedd1b228f943df806c2d320ff2fb07a" + "hash": "afa74463bd4af840f60b42d627bf8008" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5548,7 +5548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "b3afb3b7a3a5974c497eaeb747b1a589" + "hash": "dd6985fc102c83faa9ab2042e7c1aea8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5560,7 +5560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "4652d7fe02e0830faa310d7d91dec8ba" + "hash": "3c3f57468d30f949b1989bbbac7bbe31" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -5596,7 +5596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "871931cc603472974d1eb4aedea5f80f" + "hash": "44cc22eab5e09a25e5462f975ff982ea" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -11564,7 +11564,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php", - "hash": "00c4bbb14b11e0b8cc64c43f8a08539f" + "hash": "224cd2140c2b1e934ba658ceff52d1a4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php", @@ -11680,15 +11680,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "6374f7a8d4cdd286c4e283c3d533dc22" + "hash": "8865cd10465ff9425eb76ee95f6c429f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "da43fa70197a959e803f75ea4292e5cc" + "hash": "1ec01b75b354ac454f0564d0b38476d1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "66a02e2499a17f932a12da2ac53f6f58" + "hash": "88d095541c692b12b3c270a30d21304d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -11920,7 +11920,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php", - "hash": "b0f593db7c96615e2dad6e1469ce5849" + "hash": "1c33fb881508bc7da4ae82aac02d9542" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php", @@ -11948,11 +11948,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php", - "hash": "26883f33ae868b27d6603830d137643e" + "hash": "b49c288f03f3e7ba40e660d937401c70" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php", - "hash": "bdbfe86e35b8c68c323750f840cef84e" + "hash": "309f7abf85dd75cbde9cb01092799db7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php", @@ -20872,7 +20872,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "d3d4c1d3680ec79d451d87878dd1d32e" + "hash": "4e24ef4cc4992ce313a521b0e1830799" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -20884,7 +20884,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "97e7c705cefd4c931ea0306482da04db" + "hash": "20dbf4c6284ff6955ec87c5b018e5ece" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -24340,7 +24340,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "c844bbb8acb7a53860f417408706cf84" + "hash": "cbba7a48f557af815a48ac1f7a6521e6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24616,7 +24616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "02db131d7a46cc7db66c77922882bb32" + "hash": "53a1d6e0b1f8979b31f0dc4acbd08646" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24840,7 +24840,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "1592d438d90b74b5de8e22353e18a4e0" + "hash": "07a5439e2e2ba1ce74ee3b591b121aea" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -24944,7 +24944,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "63d0c6b7c1dd7ec9eca9728d2c1ca4ec" + "hash": "7579a0df9b97ccb18fd4808677b0fb20" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -27612,11 +27612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "23580fdcd0f3080d5c2b11ed768d1bf8" + "hash": "4f02e5b34a80cfafc1844f8d4fe755f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "04f52ce89ea0d42bac5e418c6d413ab2" + "hash": "082aa496c548d70ebcb9479d705b81ca" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -31972,11 +31972,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFilePathRestriction.php", - "hash": "6d184a7e43345415008725c652cdf6e3" + "hash": "d8cd900c0da1fe69fb7fbf72af2cb266" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFilePathLength.php", - "hash": "953005a0443948fed5909fdc0e5356ca" + "hash": "67823099e744effef9dfa39b156e2594" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFileExtensionRestriction.php", @@ -31984,7 +31984,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFileSize.php", - "hash": "b744cee366dd40e98b0fd5fc7d305ddb" + "hash": "fa28cf82ac5d40afd3bdb882889c6153" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFilePathRestriction\/Parameters.php", @@ -31992,7 +31992,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFilePathLength\/Parameters.php", - "hash": "09fdf9035f0115ec0de2a01d77d50253" + "hash": "863a68e02be2d1703023b83f2ed2c589" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFileExtensionRestriction\/Parameters.php", diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php index 1ee2602507c..cbc06f55374 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php index 309424e7cd5..6c5140666e7 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index 30f35d94869..e011522547f 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -2743,7 +2743,7 @@ public function listReleaseAssets(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function getBranchRules(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index ff2088feda3..b119f05f5a7 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -64,7 +64,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable */ + /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|Ok|Json|OidcCustomSub|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|RulesetVersion|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index 2ecc6ad7606..934495daa14 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -1297,7 +1297,7 @@ public function listReleaseAssetsListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getBranchRulesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 4379ac5fe08..326ad672df5 100644 --- a/clients/GitHub/src/Internal/Router/List/Seven.php +++ b/clients/GitHub/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|iterable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 9a15db4c7b4..92148995ccf 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -1152,13 +1152,13 @@ public function uploadReleaseAsset(string $owner, string $repo, int $releaseId, return $this->operators->repos👷UploadReleaseAsset()->call($owner, $repo, $releaseId, $name, $label, $params); } - /** @return iterable */ + /** @return Observable */ public function getBranchRules(string $owner, string $repo, string $branch, int $perPage, int $page): iterable { return $this->operators->repos👷GetBranchRules()->call($owner, $repo, $branch, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getBranchRulesListing(string $owner, string $repo, string $branch, int $perPage, int $page): iterable { return $this->operators->repos👷GetBranchRulesListing()->call($owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 521f24dc147..6a9ef1cd320 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -3724,11 +3724,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /repos/{owner}/{repo}/rulesets') { diff --git a/clients/GitHub/src/Schema/Issues/Create/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Issues/Create/Request/ApplicationJson.php index bcd4a56e5cb..c231ae9ce79 100644 --- a/clients/GitHub/src/Schema/Issues/Create/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Issues/Create/Request/ApplicationJson.php @@ -96,7 +96,7 @@ "string", "null" ], - "description": "The name of the issue type to associate with this issue.", + "description": "The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", "examples": [ "Epic" ] @@ -127,7 +127,7 @@ * assignee: Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_ * labels: Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ * assignees: Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ - * type: The name of the issue type to associate with this issue. + * type: The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._ */ public function __construct(public string|int $title, public string|null $body, public string|null $assignee, public string|int|null $milestone, public array|null $labels, public array|null $assignees, public string|null $type) { diff --git a/clients/GitHub/src/Schema/Issues/Update/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Issues/Update/Request/ApplicationJson.php index 40ba096d3f1..f96ee7bd277 100644 --- a/clients/GitHub/src/Schema/Issues/Update/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Issues/Update/Request/ApplicationJson.php @@ -127,7 +127,7 @@ "string", "null" ], - "description": "The name of the issue type to associate with this issue or use `null` to remove the current issue type.", + "description": "The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", "examples": [ "Epic" ] @@ -162,7 +162,7 @@ * stateReason: The reason for the state change. Ignored unless `state` is changed. * labels: Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped. * assignees: Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped. - * type: The name of the issue type to associate with this issue or use `null` to remove the current issue type. + * type: The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped. */ public function __construct(public string|int|null $title, public string|null $body, public string|null $assignee, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, public string|int|null $milestone, public array|null $labels, public array|null $assignees, public string|null $type,) diff --git a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index 554c0de97b1..947cbbe45ee 100644 --- a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -929,7 +929,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -954,12 +954,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1020,7 +1020,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 13690148502..5697b91ccf4 100644 --- a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -709,7 +709,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -734,12 +734,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -800,7 +800,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index ee77c6b1917..d76eefc0f38 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -924,7 +924,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -949,12 +949,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1015,7 +1015,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index eecc7976676..922cb7360a4 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -704,7 +704,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -729,12 +729,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -795,7 +795,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/RepositoryRule.php b/clients/GitHub/src/Schema/RepositoryRule.php index 7d6e72df055..47851c7e06f 100644 --- a/clients/GitHub/src/Schema/RepositoryRule.php +++ b/clients/GitHub/src/Schema/RepositoryRule.php @@ -607,7 +607,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -632,12 +632,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -698,7 +698,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/RepositoryRuleDetailed.php b/clients/GitHub/src/Schema/RepositoryRuleDetailed.php index dce414cd7bb..ddf203cfd75 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleDetailed.php +++ b/clients/GitHub/src/Schema/RepositoryRuleDetailed.php @@ -999,7 +999,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "repository ruleset data for rule", @@ -1050,12 +1050,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "repository ruleset data for rule", @@ -1168,7 +1168,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "repository ruleset data for rule", diff --git a/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php b/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php index f06df1815f2..bbe660fbec6 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php +++ b/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php @@ -37,10 +37,10 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }'; public const SCHEMA_TITLE = 'file_path_restriction'; - public const SCHEMA_DESCRIPTION = 'Prevent commits that include changes in specified file paths from being pushed to the commit graph.'; + public const SCHEMA_DESCRIPTION = 'Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.'; public const SCHEMA_EXAMPLE_DATA = '{ "type": "file_path_restriction", "parameters": { diff --git a/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php index 50227af8ca3..4cf6ff4d2d1 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php @@ -31,15 +31,15 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }'; public const SCHEMA_TITLE = 'max_file_path_length'; - public const SCHEMA_DESCRIPTION = 'Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.'; + public const SCHEMA_DESCRIPTION = 'Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.'; public const SCHEMA_EXAMPLE_DATA = '{ "type": "max_file_path_length", "parameters": { diff --git a/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php index b2044bb3601..f37867d134a 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php @@ -18,7 +18,7 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } }'; @@ -29,7 +29,7 @@ }'; /** - * maxFilePathLength: The maximum amount of characters allowed in file paths + * maxFilePathLength: The maximum amount of characters allowed in file paths. */ public function __construct(#[MapFrom('max_file_path_length')] public int $maxFilePathLength,) diff --git a/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php index a9ed52bb900..f145c1d94c4 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php @@ -36,10 +36,10 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }'; public const SCHEMA_TITLE = 'max_file_size'; - public const SCHEMA_DESCRIPTION = 'Prevent commits that exceed a specified file size limit from being pushed to the commit graph.'; + public const SCHEMA_DESCRIPTION = 'Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.'; public const SCHEMA_EXAMPLE_DATA = '{ "type": "max_file_size", "parameters": { diff --git a/clients/GitHub/src/Schema/RepositoryRuleset.php b/clients/GitHub/src/Schema/RepositoryRuleset.php index e690dfa20f9..12a507a1de8 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset.php @@ -1020,7 +1020,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -1045,12 +1045,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1111,7 +1111,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php index 6c87af2b376..e7fc157ed8a 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php @@ -2737,7 +2737,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -2762,12 +2762,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2828,7 +2828,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php index f69cfcddac8..61d45718e23 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -2737,7 +2737,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -2762,12 +2762,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2828,7 +2828,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php index 849efb7ac48..11d74abccc3 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php @@ -2737,7 +2737,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -2762,12 +2762,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2828,7 +2828,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -3734,7 +3734,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -3759,12 +3759,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -3825,7 +3825,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -4558,7 +4558,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -4583,12 +4583,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -4649,7 +4649,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -5385,7 +5385,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -5410,12 +5410,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -5476,7 +5476,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php index 7d64f58cae4..5bda35b93e1 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php @@ -773,7 +773,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -798,12 +798,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -864,7 +864,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -1597,7 +1597,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -1622,12 +1622,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1688,7 +1688,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -2424,7 +2424,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -2449,12 +2449,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2515,7 +2515,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php index 7fb84231db9..de4d86f9725 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php @@ -612,7 +612,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -637,12 +637,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -703,7 +703,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -1436,7 +1436,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -1461,12 +1461,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1527,7 +1527,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", @@ -2263,7 +2263,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -2288,12 +2288,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2354,7 +2354,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php index e062a43f1d8..672477b9a5e 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php @@ -613,7 +613,7 @@ } } }, - "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names." }, { "title": "max_file_path_length", @@ -638,12 +638,12 @@ "maximum": 256, "minimum": 1, "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "description": "The maximum amount of characters allowed in file paths." } } } }, - "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -704,7 +704,7 @@ } } }, - "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph." }, { "title": "workflows", diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index bd32e06ab67..a535b81e013 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -937,8 +937,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/releases/{release_id}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/releases/{release_id}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}')); -assertType('iterable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); -assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); +assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); +assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets')); assertType('', $client->call('POST /repos/{owner}/{repo}/rulesets')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 3f9715b5804..849a51e59f0 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -11629,7 +11629,8 @@ paths: "/orgs/{org}/issue-types": get: summary: List issue types for an organization - description: Lists all issue types for an organization. + description: Lists all issue types for an organization. OAuth app tokens and + personal access tokens (classic) need the read:org scope to use this endpoint. tags: - orgs operationId: orgs/list-issue-types @@ -11663,6 +11664,9 @@ paths: Create a new issue type for an organization. You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). + + To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and + personal access tokens (classic) need the `admin:org` scope to use this endpoint. tags: - orgs operationId: orgs/create-issue-type @@ -11710,6 +11714,9 @@ paths: Updates an issue type for an organization. You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). + + To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and + personal access tokens (classic) need the `admin:org` scope to use this endpoint. tags: - orgs operationId: orgs/update-issue-type @@ -11757,6 +11764,9 @@ paths: Deletes an issue type for an organization. You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). + + To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and + personal access tokens (classic) need the `admin:org` scope to use this endpoint. tags: - orgs operationId: orgs/delete-issue-type @@ -34304,7 +34314,9 @@ paths: type: - string - 'null' - description: The name of the issue type to associate with this issue. + description: 'The name of the issue type to associate with this + issue. _NOTE: Only users with push access can set the type for + new issues. The type is silently dropped otherwise._' examples: - Epic required: @@ -34921,7 +34933,9 @@ paths: - string - 'null' description: The name of the issue type to associate with this issue - or use `null` to remove the current issue type. + or use `null` to remove the current issue type. Only users with + push access can set the type for issues. Without push access to + the repository, type changes are silently dropped. examples: - Epic examples: @@ -79866,8 +79880,9 @@ components: - pattern repository-rule-file-path-restriction: title: file_path_restriction - description: Prevent commits that include changes in specified file paths from - being pushed to the commit graph. + description: Prevent commits that include changes in specified file and folder + paths from being pushed to the commit graph. This includes absolute paths + that contain file names. type: object required: - type @@ -79889,7 +79904,7 @@ components: - restricted_file_paths repository-rule-max-file-path-length: title: max_file_path_length - description: Prevent commits that include file paths that exceed a specified + description: Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph. type: object required: @@ -79904,7 +79919,7 @@ components: properties: max_file_path_length: type: integer - description: The maximum amount of characters allowed in file paths + description: The maximum amount of characters allowed in file paths. minimum: 1 maximum: 256 required: @@ -79934,8 +79949,8 @@ components: - restricted_file_extensions repository-rule-max-file-size: title: max_file_size - description: Prevent commits that exceed a specified file size limit from being - pushed to the commit graph. + description: Prevent commits with individual files that exceed the specified + limit from being pushed to the commit graph. type: object required: - type