diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index cc48e0da2cc..b923d41cf06 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "a5a20c93e8ace47c79943304e911cf70", + "specHash": "64034f0aaa76d6090b5eb70ffe778e12", "generatedFiles": { "files": [ { @@ -572,7 +572,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRequiredStatusChecks.php", - "hash": "76207449b57e5c0f3b7070d3bed41abd" + "hash": "0dc06f732e9bfa211db5cf9252e369f5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleNonFastForward.php", @@ -600,11 +600,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php", - "hash": "f814399b81713e17c9b3a4e013b37f3c" + "hash": "0cde54936a5777cf5f9fd605e1049036" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "62b6ebdccdb63e8710dc688cec646d1a" + "hash": "7dc0b80dc766b24c64d6353f9288bca2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -1204,7 +1204,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Label.php", - "hash": "19919c2f950168eead483ae5bb965ac0" + "hash": "afe6c97f18672e0c0952c5a0819933f2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCommentEvent.php", @@ -1548,7 +1548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Discussion.php", - "hash": "49804988d199de90cbaa55f4f333b0c4" + "hash": "9eb8acd97a94d1569a89efc09f24ebfa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PersonalAccessTokenRequest.php", @@ -1708,75 +1708,75 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionAnswered.php", - "hash": "39aa5fd85441acc769f60fc7c540ddba" + "hash": "e514565153e882115329741cde72282b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCategoryChanged.php", - "hash": "0f38859353f802d6f041067bbef22a31" + "hash": "3f3d2c706e9e221b8c514b35c88c9047" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionClosed.php", - "hash": "4fb5ca26110b362d114e271978c4884c" + "hash": "0d7ac566973205622622fc9faadef33b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentCreated.php", - "hash": "deb38c84dd1465316d17d77d8eaf88a6" + "hash": "84a3a04b5d831f60b9f7509cdcb3a4b9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentDeleted.php", - "hash": "5822729dea7b1745785ebd81464d79ef" + "hash": "0dfb14685b88ded39bc51fe229ae43c0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentEdited.php", - "hash": "d41272ec1c3cebdb401d76a15505472c" + "hash": "54410496b352af20159d05e24ffc83a0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCreated.php", - "hash": "7c809555adae2c04618d0b6cd3d09f06" + "hash": "79b9e05be1edb2320d9b4b88bebd6701" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionDeleted.php", - "hash": "7e41a5e683868928291bdb2a5a711c42" + "hash": "36ce213039c158c7549c152e748eb72e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionEdited.php", - "hash": "1805eec18acad9ebee7d1311af0468dd" + "hash": "ca3cf4fe4737edce8c9d26d27b7be344" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionLabeled.php", - "hash": "e83f46cc40ccda69c680999f0a4aea8d" + "hash": "4a65cc301ebee62490741d876909bff3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionLocked.php", - "hash": "54bbf45105d321769a6db2521a7dbe4a" + "hash": "4c1f6d79b138ecd34123c561c64b7495" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionPinned.php", - "hash": "a95bc93f4d0f63dc6600c830c4eb2318" + "hash": "e243cc1780666e620160316bf7c56da5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionReopened.php", - "hash": "9e102fae1964bd8cb112b13dce5d4fa4" + "hash": "3ace8c225d5e8c1f21c5a38b01adeda2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionTransferred.php", - "hash": "8ff1166edc10311a2a5b0a44826744a6" + "hash": "2a5bc27403256cf410feb1de211dd981" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnanswered.php", - "hash": "9e7e491b29cd7f31448c66cefe09b83d" + "hash": "92b9c939682e904e131a6cbce64d4d3e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnlabeled.php", - "hash": "62d9cbb9cb22ec17c013093081a9d0f2" + "hash": "f22f1c76feef28bd7f76d75409837d9c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnlocked.php", - "hash": "999a5e2d9761d7415c2d949ecf4200ce" + "hash": "a7641c7411f07ed9f1615baeafffa499" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnpinned.php", - "hash": "0121a430f177ed5a7588bf935b04755f" + "hash": "493c18d2b1175ec689b46d994cc72f44" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork.php", @@ -2716,7 +2716,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRequiredStatusChecks\/Parameters.php", - "hash": "94e33a5bf062dd0cd1e57d0edc6e2533" + "hash": "1719348ba8517d2d164deb65a2d2e374" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCommitMessagePattern\/Parameters.php", @@ -3480,7 +3480,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionTransferred\/Changes.php", - "hash": "30c45b645fbd57aeff603447bf4414f1" + "hash": "3d1dc0362774458b7f92fd4284166d13" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee.php", @@ -4628,11 +4628,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "73dd2c37898d484ddf76dba827494d6a" + "hash": "2d758ff47c0f464f876fe60b002bb218" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "9a1ab2c16bfb84dc35ab48b149eedd36" + "hash": "9edc8dc810d292fb2055f23e871ef364" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5336,11 +5336,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "26249bb3ccbb07c74ddf48ae8d7e8028" + "hash": "a28310fd5df67997cd6f0c1300ddcee9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "9e1d8af1935dc46b72eeb615c56f1b2d" + "hash": "200b734577fe064c81af8da3f7494686" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5612,7 +5612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "e381fc2ab1bec61faae5d7c7ec67269c" + "hash": "cf048b8dcf3799a207b828c288738c09" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -11668,7 +11668,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php", - "hash": "4a5f56484936c076a1552325032b6cb7" + "hash": "8720782d7815f87ed495b3dc7feda1f0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php", @@ -11808,15 +11808,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "1eb81b95d9f2e6bc7bfa5d06558788cb" + "hash": "4c877288af50a7b7334cb1bc2fd52324" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "f3345556175d6671e96d3ab20ad3235a" + "hash": "0dc395659ee136b10835c9fba64a5f11" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "f1dd66e52f4bb12640bce2c33994c933" + "hash": "6dd804426a30e9e4498933adb821994b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -12052,7 +12052,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php", - "hash": "c1c1b25efe85e4b1b4ede5c10ec7eb02" + "hash": "69570983633b85b4dddf93bd65f1da54" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php", @@ -12080,11 +12080,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php", - "hash": "da49324be3e168f0affd503c367d7c34" + "hash": "0c316e592a986cc658b4d87b4ecc52bf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php", - "hash": "9807d5017ed1a6f72565f6f75e64c3e5" + "hash": "4803aa143658201cd085fc623d69ffb0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php", @@ -21004,11 +21004,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRules.php", - "hash": "b21f0590bee73822fb99cf651ad49e48" + "hash": "c4fa5fe905b3d3c32913dc3e5abd8433" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "2c2f35eeda1d4f1761bda694ce64797f" + "hash": "6d7cc2fe0b07885f74f61a06022f649e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -21016,11 +21016,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRulesListing.php", - "hash": "b20b351b7c47a84edb76b053bb59ec6e" + "hash": "c04fae47cee035e813e6d8d9ee3e1f8f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "c2dfbc2196c4fd5af0b19a646a035fef" + "hash": "6c3a8d5a072082d64ba1ec6c290f9438" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -24412,7 +24412,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Rule.php", - "hash": "e8affe6e5bdd43d57463f55f2c646c3f" + "hash": "7b6597498226b0e05c95d3cfdc4af15f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson\/Conditions.php", @@ -24476,7 +24476,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "d1a0b4465ff38c7fd97bc852bd792ef7" + "hash": "4aa35719d6224ad7eddc2ac98b6e7ccb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24752,7 +24752,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "cf7617fb2ce09a52d7d8935674d11a0d" + "hash": "399f5edcdedb899363ad4b8540da75de" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24976,7 +24976,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "4105f65e75c01a4e9c950b0684fce7d5" + "hash": "6e51874875891ed278d57ff7b299f1c5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -25080,7 +25080,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "dcfceb2096653703be6bdd01580dc1ae" + "hash": "518504f44f1fc79ff08cdbe4663075a1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -27540,11 +27540,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleWorkflows.php", - "hash": "c76f12ef9a067100bc412da9a7d42682" + "hash": "b8b9483dc22157f210e3211df98ae33b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleWorkflows\/Parameters.php", - "hash": "08b1bb14ecce606eab62583e0bcd7d1d" + "hash": "a3399b105bb6699fe7d2ad1b49471001" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/GetAllCustomProperties.php", @@ -27788,11 +27788,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "4550bdb89fce474ead600772552c8d66" + "hash": "6810d856fa35757c04ed82c7d70096ef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "d24d1361c76ad52b02ce010e49d18d83" + "hash": "621c3d1773130e0e9a7dacfb66bcafeb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28148,11 +28148,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Discussion.php", - "hash": "536de9d18091f01aedabc0306b10e787" + "hash": "27fbd48b8c6737fdcc8831308f148496" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DiscussionComment.php", - "hash": "c39b1162d39ded75cc7f1239ba286e64" + "hash": "18b3728a51025d4a41e1ac19bc64bad5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Fork.php", @@ -29190,37 +29190,29 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksTeam1.php", "hash": "999864413808380113061ec96c4841c0" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fourteen.php", - "hash": "c882ad5a6aff6271dde6da3415b2dee7" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fourteen\/Parameters.php", - "hash": "db730ed89ec76f2aa9098853c0e11b88" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fifteen.php", - "hash": "443da27e72bbfdef7a90e694d32762fe" + "hash": "214e7acc22366b3ef365928c3076c397" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fifteen\/Parameters.php", - "hash": "2382e90821d6511689e19bd7a77f61d6" + "hash": "f2627c90bce12da5ca4ffd6804020295" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Sixteen.php", - "hash": "9f2332aab9b407075b04119ea7aa5aa8" + "hash": "ac1935a5ff7fc89f0928bc7bb5cc3f9c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Sixteen\/Parameters.php", - "hash": "6b1a8303e90a313ccededc6c4973e17c" + "hash": "3a005af5fd276175274da916834369a2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Seventeen.php", - "hash": "a151e21beb5ac0feb7b04db0e6a8ec97" + "hash": "ba7299eea13a40b23eba8ea1c9e90b31" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Seventeen\/Parameters.php", - "hash": "b21ab5734d721ebcc4ce44b104200be9" + "hash": "ab171d0fd537007f74472032861309d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksComment\/Reactions.php", @@ -29744,11 +29736,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeSecurity\/GetRepositoriesForConfiguration.php", - "hash": "57c0a7392914f594b8dbad39ae47c0aa" + "hash": "9e9814f82c4ac873705c88f29773ed87" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetRepositoriesForConfiguration.php", - "hash": "72bfcfeff1297d5ae5c2de728fee2a4e" + "hash": "54f942a6978dd9fbfeda1b3bf9e3ffb0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetRepositoriesForConfigurationTest.php", @@ -29792,11 +29784,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/CreateConfiguration\/Request\/ApplicationJson.php", - "hash": "dde9c21271d743e986c64b6b1c1e6039" + "hash": "fd8d76c221bd60f35aa2c0463d6bd4ff" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/UpdateConfiguration\/Request\/ApplicationJson.php", - "hash": "f2e0674220f301a4860e99d1e2d407c5" + "hash": "9ad36af795ed45286288a52e398d1ce0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachConfiguration\/Request\/ApplicationJson.php", @@ -29812,7 +29804,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php", - "hash": "1dc44fb96797b0a5a6285ed99a7607f0" + "hash": "844fd2d6dba69c3bbb0f1d5d05808646" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php", @@ -29832,7 +29824,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php", - "hash": "89a797debae8bbbb18e991e556957a09" + "hash": "9471386c2ac6625f26fa794fd86d545d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", @@ -30261,6 +30253,22 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Detach.php", "hash": "561cacd15f68beda2496e4381907de94" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMergeQueue.php", + "hash": "be1947b41560447b8d8bcaced6c4f869" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMergeQueue\/Parameters.php", + "hash": "63ead8aaf1cd72853d94b3eb5ff59de1" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen.php", + "hash": "718d8afbab87adbf7bba94ab60a426e9" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen\/Parameters.php", + "hash": "e1f28caa9eb8cadf96ff706a4ea2b302" } ] }, diff --git a/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php b/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php index b5a0295232b..3b84c747897 100644 --- a/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php +++ b/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php @@ -53,6 +53,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed } } + if ($signature === 'parameters|type' && $value['type'] === 'merge_queue') { + try { + return $hydrator->hydrateObject(Schema\RepositoryRuleMergeQueue::class, $value); + } catch (Throwable) { + } + } + if ($signature === 'parameters|type' && $value['type'] === 'required_deployments') { try { return $hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $value); @@ -125,28 +132,28 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed if ($signature === 'parameters|type' && $value['type'] === 'file_path_restriction') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fourteen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value); } catch (Throwable) { } } if ($signature === 'parameters|type' && $value['type'] === 'max_file_path_length') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value); } catch (Throwable) { } } if ($signature === 'parameters|type' && $value['type'] === 'file_extension_restriction') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value); } catch (Throwable) { } } if ($signature === 'parameters|type' && $value['type'] === 'max_file_size') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Eighteen::class, $value); } catch (Throwable) { } } diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php index a756ab10d51..07b31f63945 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php @@ -1133,6 +1133,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Disc $properties['user'] = $value; after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $properties['labels'] = null; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Discussion', $exception, stack: $this->hydrationStack); } @@ -8592,6 +8603,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Discussion⚡️User($user); after_user: $result['user'] = $user; + $labels = $object->labels; + + if ($labels === null) { + goto after_labels; + } + + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + return $result; } diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php index c95457406fe..45cd99428b4 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php @@ -1101,6 +1101,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Disc $properties['user'] = $value; after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $properties['labels'] = null; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Discussion', $exception, stack: $this->hydrationStack); } @@ -6310,6 +6321,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Discussion⚡️User($user); after_user: $result['user'] = $user; + $labels = $object->labels; + + if ($labels === null) { + goto after_labels; + } + + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + return $result; } diff --git a/clients/GitHub/src/Internal/Operation/CodeSecurity/GetRepositoriesForConfiguration.php b/clients/GitHub/src/Internal/Operation/CodeSecurity/GetRepositoriesForConfiguration.php index 92219fa8173..574c73a4fa6 100644 --- a/clients/GitHub/src/Internal/Operation/CodeSecurity/GetRepositoriesForConfiguration.php +++ b/clients/GitHub/src/Internal/Operation/CodeSecurity/GetRepositoriesForConfiguration.php @@ -37,7 +37,7 @@ final class GetRepositoriesForConfiguration private int $perPage; /**A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. - Can be: `all`, `attached`, `attaching`, `detached`, `enforced`, `failed`, `updating` **/ + Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` **/ private string $status; public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\CodeSecurity\Configurations\ConfigurationId\Repositories $hydrator, string $org, int $configurationId, string $before, string $after, int $perPage = 30, string $status = 'all') diff --git a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php index a38638b936b..617e42a3312 100644 --- a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php +++ b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php @@ -49,7 +49,7 @@ public function createRequest(): RequestInterface return new Request('GET', str_replace(['{owner}', '{repo}', '{branch}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->branch, $this->perPage, $this->page], '/repos/{owner}/{repo}/rules/branches/{branch}' . '?per_page={per_page}&page={page}')); } - /** @return Observable */ + /** @return Observable */ public function createResponse(ResponseInterface $response): Observable { $code = $response->getStatusCode(); @@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable * Response **/ case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { $error = new RuntimeException(); try { $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCreation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); @@ -101,113 +101,122 @@ public function createResponse(ResponseInterface $response): Observable items_application_json_two_hundred_aaaad: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredDeployments::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleMergeQueue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleMergeQueue::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaae; } items_application_json_two_hundred_aaaae: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredSignatures::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredDeployments::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredSignatures::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaaf; } items_application_json_two_hundred_aaaaf: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRulePullRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredSignatures::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRulePullRequest::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredSignatures::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaag; } items_application_json_two_hundred_aaaag: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredStatusChecks::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRulePullRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredStatusChecks::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRulePullRequest::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaah; } items_application_json_two_hundred_aaaah: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleNonFastForward::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredStatusChecks::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleNonFastForward::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredStatusChecks::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaai; } items_application_json_two_hundred_aaaai: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitMessagePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleNonFastForward::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitMessagePattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleNonFastForward::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaaj; } items_application_json_two_hundred_aaaaj: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitAuthorEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitMessagePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitAuthorEmailPattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitMessagePattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaak; } items_application_json_two_hundred_aaaak: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitterEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitAuthorEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitterEmailPattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitAuthorEmailPattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaal; } items_application_json_two_hundred_aaaal: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleBranchNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitterEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleBranchNamePattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitterEmailPattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaam; } items_application_json_two_hundred_aaaam: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleTagNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleBranchNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleTagNamePattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleBranchNamePattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaan; } items_application_json_two_hundred_aaaan: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleTagNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleTagNamePattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaao; } items_application_json_two_hundred_aaaao: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaap; } items_application_json_two_hundred_aaaap: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaq; + } + + items_application_json_two_hundred_aaaaq: throw $error; }); } diff --git a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php index 51f0ea65d85..c95405eaf35 100644 --- a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php +++ b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php @@ -49,7 +49,7 @@ public function createRequest(): RequestInterface return new Request('GET', str_replace(['{owner}', '{repo}', '{branch}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->branch, $this->perPage, $this->page], '/repos/{owner}/{repo}/rules/branches/{branch}' . '?per_page={per_page}&page={page}')); } - /** @return Observable */ + /** @return Observable */ public function createResponse(ResponseInterface $response): Observable { $code = $response->getStatusCode(); @@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable * Response **/ case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { $error = new RuntimeException(); try { $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCreation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); @@ -101,113 +101,122 @@ public function createResponse(ResponseInterface $response): Observable items_application_json_two_hundred_aaaad: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredDeployments::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleMergeQueue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleMergeQueue::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaae; } items_application_json_two_hundred_aaaae: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredSignatures::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredDeployments::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredSignatures::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredDeployments::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaaf; } items_application_json_two_hundred_aaaaf: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRulePullRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredSignatures::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRulePullRequest::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredSignatures::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaag; } items_application_json_two_hundred_aaaag: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredStatusChecks::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRulePullRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredStatusChecks::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRulePullRequest::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaah; } items_application_json_two_hundred_aaaah: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleNonFastForward::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleRequiredStatusChecks::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleNonFastForward::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleRequiredStatusChecks::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaai; } items_application_json_two_hundred_aaaai: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitMessagePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleNonFastForward::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitMessagePattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleNonFastForward::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaaj; } items_application_json_two_hundred_aaaaj: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitAuthorEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitMessagePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitAuthorEmailPattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitMessagePattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaak; } items_application_json_two_hundred_aaaak: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitterEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitAuthorEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitterEmailPattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitAuthorEmailPattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaal; } items_application_json_two_hundred_aaaal: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleBranchNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCommitterEmailPattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleBranchNamePattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCommitterEmailPattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaam; } items_application_json_two_hundred_aaaam: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleTagNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleBranchNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleTagNamePattern::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleBranchNamePattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaan; } items_application_json_two_hundred_aaaan: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleTagNamePattern::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleTagNamePattern::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaao; } items_application_json_two_hundred_aaaao: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaap; } items_application_json_two_hundred_aaaap: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaq; + } + + items_application_json_two_hundred_aaaaq: throw $error; }); } diff --git a/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php b/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php index 319232c63c2..ef5cb1683c8 100644 --- a/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php +++ b/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $org, int $configurationId, string $before, string $after, int $perPage = 30, string $status = 'all'): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeSecurity\GetRepositoriesForConfiguration($this->responseSchemaValidator, $this->hydrator, $org, $configurationId, $before, $after, $perPage, $status); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php index 561663e4c8c..7651841cbc8 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 Observable */ + /** @return iterable */ 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 46788ed577e..f5d8b15cbe3 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 Observable */ + /** @return iterable */ 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/CodeSecurity.php b/clients/GitHub/src/Internal/Router/Get/CodeSecurity.php index de32945a026..9810a663dfb 100644 --- a/clients/GitHub/src/Internal/Router/Get/CodeSecurity.php +++ b/clients/GitHub/src/Internal/Router/Get/CodeSecurity.php @@ -96,7 +96,7 @@ public function getConfiguration(array $params): CodeSecurityConfiguration|Witho return $operator->call($arguments['org'], $arguments['configuration_id']); } - /** @return Observable */ + /** @return iterable */ public function getRepositoriesForConfiguration(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index 7710335ad33..e3a1eab7118 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -2730,7 +2730,7 @@ public function listReleaseAssets(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ 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 2e853c6aafe..024182a4be8 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -63,7 +63,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|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 */ + /** @return |iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|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 */ public function call(string $call, array $params, array $pathChunks): OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|iterable|\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|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 c0191b5b217..acb2425d8ec 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -1285,7 +1285,7 @@ public function listReleaseAssetsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ 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 b9a8bfebd6c..0fbd8a1cfef 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|Schema\BasicError|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 */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|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 */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/CodeSecurity.php b/clients/GitHub/src/Operation/CodeSecurity.php index 97c48a33108..19d28152f1d 100644 --- a/clients/GitHub/src/Operation/CodeSecurity.php +++ b/clients/GitHub/src/Operation/CodeSecurity.php @@ -71,7 +71,7 @@ public function setConfigurationAsDefault(string $org, int $configurationId, arr return $this->operators->codeSecurity👷SetConfigurationAsDefault()->call($org, $configurationId, $params); } - /** @return Observable */ + /** @return iterable */ public function getRepositoriesForConfiguration(string $org, int $configurationId, string $before, string $after, int $perPage, string $status): iterable { return $this->operators->codeSecurity👷GetRepositoriesForConfiguration()->call($org, $configurationId, $before, $after, $perPage, $status); diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 2f1e7efe324..10788aadf25 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -1151,13 +1151,13 @@ public function uploadReleaseAsset(string $owner, string $repo, int $releaseId, return $this->operators->repos👷UploadReleaseAsset()->call($owner, $repo, $releaseId, $name, $label, $params); } - /** @return Observable */ + /** @return iterable */ 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 Observable */ + /** @return iterable */ 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 3aee3a9827b..012f2df4f78 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -720,7 +720,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /orgs/{org}/codespaces') { @@ -3412,11 +3412,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/rulesets') { diff --git a/clients/GitHub/src/Schema/CodeSecurity/CreateConfiguration/Request/ApplicationJson.php b/clients/GitHub/src/Schema/CodeSecurity/CreateConfiguration/Request/ApplicationJson.php index ca13e076253..ef6a8017709 100644 --- a/clients/GitHub/src/Schema/CodeSecurity/CreateConfiguration/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/CodeSecurity/CreateConfiguration/Request/ApplicationJson.php @@ -119,7 +119,7 @@ "unenforced" ], "type": "string", - "description": "The status of enforcement", + "description": "The enforcement status for a security configuration", "default": "enforced" } }, @@ -154,7 +154,7 @@ * secretScanningPushProtection: The enablement status of secret scanning push protection * secretScanningValidityChecks: The enablement status of secret scanning validity checks * privateVulnerabilityReporting: The enablement status of private vulnerability reporting - * enforcement: The status of enforcement + * enforcement: The enforcement status for a security configuration */ public function __construct(public string $name, public string $description, #[MapFrom('advanced_security')] public string|null $advancedSecurity, #[MapFrom('dependency_graph')] diff --git a/clients/GitHub/src/Schema/CodeSecurity/UpdateConfiguration/Request/ApplicationJson.php b/clients/GitHub/src/Schema/CodeSecurity/UpdateConfiguration/Request/ApplicationJson.php index 0ab5a240b5e..d8159f2022b 100644 --- a/clients/GitHub/src/Schema/CodeSecurity/UpdateConfiguration/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/CodeSecurity/UpdateConfiguration/Request/ApplicationJson.php @@ -106,7 +106,7 @@ "unenforced" ], "type": "string", - "description": "The status of enforcement" + "description": "The enforcement status for a security configuration" } }, "additionalProperties": false @@ -140,7 +140,7 @@ * secretScanningPushProtection: The enablement status of secret scanning push protection * secretScanningValidityChecks: The enablement status of secret scanning validity checks * privateVulnerabilityReporting: The enablement status of private vulnerability reporting - * enforcement: The status of enforcement + * enforcement: The enforcement status for a security configuration */ public function __construct(public string|null $name, public string|null $description, #[MapFrom('advanced_security')] public string|null $advancedSecurity, #[MapFrom('dependency_graph')] diff --git a/clients/GitHub/src/Schema/Discussion.php b/clients/GitHub/src/Schema/Discussion.php index ef79fac6a21..95296eb950c 100644 --- a/clients/GitHub/src/Schema/Discussion.php +++ b/clients/GitHub/src/Schema/Discussion.php @@ -422,6 +422,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -516,7 +588,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }'; /** @@ -538,7 +630,7 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $repositoryUrl, public string $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] - public string $updatedAt, public Schema\Discussion\User|null $user,) + public string $updatedAt, public Schema\Discussion\User|null $user, public array|null $labels,) { } } diff --git a/clients/GitHub/src/Schema/Label.php b/clients/GitHub/src/Schema/Label.php index b49e3ee674b..f5350b539b1 100644 --- a/clients/GitHub/src/Schema/Label.php +++ b/clients/GitHub/src/Schema/Label.php @@ -23,6 +23,7 @@ "properties": { "id": { "type": "integer", + "description": "Unique identifier for the label.", "format": "int64", "examples": [ 208045946 @@ -54,6 +55,7 @@ "string", "null" ], + "description": "Optional description of the label, such as its purpose.", "examples": [ "Something isn\'t working" ] @@ -67,6 +69,7 @@ }, "default": { "type": "boolean", + "description": "Whether this label comes by default in a new repository.", "examples": [ true ] @@ -87,9 +90,12 @@ }'; /** + * id: Unique identifier for the label. * url: URL for the label * name: The name of the label. + * description: Optional description of the label, such as its purpose. * color: 6-character hex code, without the leading #, identifying the color + * default: Whether this label comes by default in a new repository. */ public function __construct(public int $id, #[MapFrom('node_id')] public string $nodeId, public string $url, public string $name, public string|null $description, public string $color, public bool $default,) diff --git a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index ff45367f276..a44d7b4f7ff 100644 --- a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -406,6 +406,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -523,6 +600,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -834,7 +915,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -864,7 +945,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -895,7 +976,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -925,7 +1006,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -946,6 +1027,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 16ca8fbc6d5..a7bf237d3f8 100644 --- a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -187,6 +187,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -304,6 +381,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -615,7 +696,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -645,7 +726,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -676,7 +757,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -706,7 +787,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -727,6 +808,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index 800e701b254..015707e7235 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -402,6 +402,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -519,6 +596,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -830,7 +911,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -860,7 +941,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -891,7 +972,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -921,7 +1002,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -942,6 +1023,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index 84f8eb94e87..16858dba04d 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -183,6 +183,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -300,6 +377,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -611,7 +692,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -641,7 +722,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -672,7 +753,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -702,7 +783,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -723,6 +804,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/RepositoryRule.php b/clients/GitHub/src/Schema/RepositoryRule.php index 0bb74fc7837..14fbe887db2 100644 --- a/clients/GitHub/src/Schema/RepositoryRule.php +++ b/clients/GitHub/src/Schema/RepositoryRule.php @@ -86,6 +86,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -203,6 +280,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -514,7 +595,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -544,7 +625,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -575,7 +656,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -605,7 +686,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -626,6 +707,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/RepositoryRuleDetailed.php b/clients/GitHub/src/Schema/RepositoryRuleDetailed.php index 303e47bf817..19123c50526 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleDetailed.php +++ b/clients/GitHub/src/Schema/RepositoryRuleDetailed.php @@ -190,6 +190,109 @@ } ] }, + { + "allOf": [ + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, + { + "title": "repository ruleset data for rule", + "properties": { + "ruleset_source_type": { + "enum": [ + "Repository", + "Organization" + ], + "type": "string", + "description": "The type of source for the ruleset that includes this rule." + }, + "ruleset_source": { + "type": "string", + "description": "The name of the source of the ruleset that includes this rule." + }, + "ruleset_id": { + "type": "integer", + "description": "The ID of the ruleset that includes this rule." + } + }, + "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values." + } + ] + }, { "allOf": [ { @@ -387,6 +490,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -870,6 +977,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/RepositoryRuleMergeQueue.php b/clients/GitHub/src/Schema/RepositoryRuleMergeQueue.php new file mode 100644 index 00000000000..1eb43cd5b32 --- /dev/null +++ b/clients/GitHub/src/Schema/RepositoryRuleMergeQueue.php @@ -0,0 +1,106 @@ + [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -952,7 +1033,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -983,7 +1064,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -1013,7 +1094,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -1034,6 +1115,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen.php new file mode 100644 index 00000000000..4bb7b9d9579 --- /dev/null +++ b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen.php @@ -0,0 +1,56 @@ + [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." +}'; + public const SCHEMA_TITLE = 'max_file_size'; + public const SCHEMA_DESCRIPTION = '> [!NOTE] +> `max_file_size` is in beta and subject to change. + +Prevent commits that exceed a specified file size limit from being pushed to the commit.'; + public const SCHEMA_EXAMPLE_DATA = '{ + "type": "max_file_size", + "parameters": { + "max_file_size": 13 + } +}'; + + public function __construct(public string $type, public Schema\RepositoryRuleset\Rules\Eighteen\Parameters|null $parameters) + { + } +} diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php new file mode 100644 index 00000000000..07fe9d511e1 --- /dev/null +++ b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php @@ -0,0 +1,38 @@ + [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }'; - public const SCHEMA_TITLE = 'max_file_path_length'; - public const SCHEMA_DESCRIPTION = 'Note: max_file_path_length is in beta and subject to change. + public const SCHEMA_TITLE = 'file_path_restriction'; + public const SCHEMA_DESCRIPTION = '> [!NOTE] +> `file_path_restriction` is in beta and subject to change. -Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.'; +Prevent commits that include changes in specified file paths from being pushed to the commit graph.'; public const SCHEMA_EXAMPLE_DATA = '{ - "type": "max_file_path_length", + "type": "file_path_restriction", "parameters": { - "max_file_path_length": 20 + "restricted_file_paths": [ + "generated", + "generated" + ] } }'; diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php index 6faf7715c75..b14f7fd23b6 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php @@ -10,29 +10,33 @@ { public const SCHEMA_JSON = '{ "required": [ - "max_file_path_length" + "restricted_file_paths" ], "type": "object", "properties": { - "max_file_path_length": { - "maximum": 256, - "minimum": 1, - "type": "integer", - "description": "The maximum amount of characters allowed in file paths" + "restricted_file_paths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The file paths that are restricted from being pushed to the commit graph." } } }'; public const SCHEMA_TITLE = ''; public const SCHEMA_DESCRIPTION = ''; public const SCHEMA_EXAMPLE_DATA = '{ - "max_file_path_length": 20 + "restricted_file_paths": [ + "generated", + "generated" + ] }'; /** - * maxFilePathLength: The maximum amount of characters allowed in file paths + * restrictedFilePaths: The file paths that are restricted from being pushed to the commit graph. */ - public function __construct(#[MapFrom('max_file_path_length')] - public int $maxFilePathLength,) + public function __construct(#[MapFrom('restricted_file_paths')] + public array $restrictedFilePaths,) { } } diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fourteen.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fourteen.php deleted file mode 100644 index 36c4367efd2..00000000000 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fourteen.php +++ /dev/null @@ -1,59 +0,0 @@ - [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }'; - public const SCHEMA_TITLE = 'max_file_size'; - public const SCHEMA_DESCRIPTION = 'Note: max_file_size is in beta and subject to change. + public const SCHEMA_TITLE = 'file_extension_restriction'; + public const SCHEMA_DESCRIPTION = '> [!NOTE] +> `file_extension_restriction` is in beta and subject to change. -Prevent commits that exceed a specified file size limit from being pushed to the commit.'; +Prevent commits that include files with specified file extensions from being pushed to the commit graph.'; public const SCHEMA_EXAMPLE_DATA = '{ - "type": "max_file_size", + "type": "file_extension_restriction", "parameters": { - "max_file_size": 13 + "restricted_file_extensions": [ + "generated", + "generated" + ] } }'; diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php index 31158233bc9..53a52aaddb6 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php @@ -10,29 +10,33 @@ { public const SCHEMA_JSON = '{ "required": [ - "max_file_size" + "restricted_file_extensions" ], "type": "object", "properties": { - "max_file_size": { - "maximum": 100, - "minimum": 1, - "type": "integer", - "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS)." + "restricted_file_extensions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The file extensions that are restricted from being pushed to the commit graph." } } }'; public const SCHEMA_TITLE = ''; public const SCHEMA_DESCRIPTION = ''; public const SCHEMA_EXAMPLE_DATA = '{ - "max_file_size": 13 + "restricted_file_extensions": [ + "generated", + "generated" + ] }'; /** - * maxFileSize: The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). + * restrictedFileExtensions: The file extensions that are restricted from being pushed to the commit graph. */ - public function __construct(#[MapFrom('max_file_size')] - public int $maxFileSize,) + public function __construct(#[MapFrom('restricted_file_extensions')] + public array $restrictedFileExtensions,) { } } diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php index a152e69fc6b..e3f302cd9f0 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php @@ -9,7 +9,7 @@ final readonly class Sixteen { public const SCHEMA_JSON = '{ - "title": "file_extension_restriction", + "title": "max_file_path_length", "required": [ "type" ], @@ -17,39 +17,36 @@ "properties": { "type": { "enum": [ - "file_extension_restriction" + "max_file_path_length" ], "type": "string" }, "parameters": { "required": [ - "restricted_file_extensions" + "max_file_path_length" ], "type": "object", "properties": { - "restricted_file_extensions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The file extensions that are restricted from being pushed to the commit graph." + "max_file_path_length": { + "maximum": 256, + "minimum": 1, + "type": "integer", + "description": "The maximum amount of characters allowed in file paths" } } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }'; - public const SCHEMA_TITLE = 'file_extension_restriction'; - public const SCHEMA_DESCRIPTION = 'Note: file_extension_restriction is in beta and subject to change. + public const SCHEMA_TITLE = 'max_file_path_length'; + public const SCHEMA_DESCRIPTION = '> [!NOTE] +> `max_file_path_length` is in beta and subject to change. -Prevent commits that include files with specified file extensions from being pushed to the commit graph.'; +Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.'; public const SCHEMA_EXAMPLE_DATA = '{ - "type": "file_extension_restriction", + "type": "max_file_path_length", "parameters": { - "restricted_file_extensions": [ - "generated", - "generated" - ] + "max_file_path_length": 20 } }'; diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php index 37e61e0d634..65e9777a70b 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php @@ -10,33 +10,29 @@ { public const SCHEMA_JSON = '{ "required": [ - "restricted_file_extensions" + "max_file_path_length" ], "type": "object", "properties": { - "restricted_file_extensions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The file extensions that are restricted from being pushed to the commit graph." + "max_file_path_length": { + "maximum": 256, + "minimum": 1, + "type": "integer", + "description": "The maximum amount of characters allowed in file paths" } } }'; public const SCHEMA_TITLE = ''; public const SCHEMA_DESCRIPTION = ''; public const SCHEMA_EXAMPLE_DATA = '{ - "restricted_file_extensions": [ - "generated", - "generated" - ] + "max_file_path_length": 20 }'; /** - * restrictedFileExtensions: The file extensions that are restricted from being pushed to the commit graph. + * maxFilePathLength: The maximum amount of characters allowed in file paths */ - public function __construct(#[MapFrom('restricted_file_extensions')] - public array $restrictedFileExtensions,) + public function __construct(#[MapFrom('max_file_path_length')] + public int $maxFilePathLength,) { } } diff --git a/clients/GitHub/src/Schema/WebhookDiscussionAnswered.php b/clients/GitHub/src/Schema/WebhookDiscussionAnswered.php index c0fcf725ac6..d4c9537454a 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionAnswered.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionAnswered.php @@ -652,6 +652,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2650,7 +2722,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionCategoryChanged.php b/clients/GitHub/src/Schema/WebhookDiscussionCategoryChanged.php index d23d835fdcf..84fc994532a 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionCategoryChanged.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionCategoryChanged.php @@ -501,6 +501,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2467,7 +2539,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionClosed.php b/clients/GitHub/src/Schema/WebhookDiscussionClosed.php index d1ef3dfc419..4c3c5c9ca8b 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionClosed.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionClosed.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionCommentCreated.php b/clients/GitHub/src/Schema/WebhookDiscussionCommentCreated.php index 4b83348ee17..02d82b13555 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionCommentCreated.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionCommentCreated.php @@ -652,6 +652,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2650,7 +2722,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionCommentDeleted.php b/clients/GitHub/src/Schema/WebhookDiscussionCommentDeleted.php index b6f466c8236..dff1d8c693f 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionCommentDeleted.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionCommentDeleted.php @@ -652,6 +652,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2650,7 +2722,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionCommentEdited.php b/clients/GitHub/src/Schema/WebhookDiscussionCommentEdited.php index cf35c84b5e5..ed6633cdbd7 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionCommentEdited.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionCommentEdited.php @@ -672,6 +672,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2675,7 +2747,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionCreated.php b/clients/GitHub/src/Schema/WebhookDiscussionCreated.php index b4cca7c22c5..e904edf1f4a 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionCreated.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionCreated.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionDeleted.php b/clients/GitHub/src/Schema/WebhookDiscussionDeleted.php index f1de379ece0..468fa6813c1 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionDeleted.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionDeleted.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionEdited.php b/clients/GitHub/src/Schema/WebhookDiscussionEdited.php index d79d7733019..3d74a08ef4c 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionEdited.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionEdited.php @@ -464,6 +464,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2422,7 +2494,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionLabeled.php b/clients/GitHub/src/Schema/WebhookDiscussionLabeled.php index cbf8fec0cd7..af5bcd8306f 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionLabeled.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionLabeled.php @@ -438,6 +438,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2431,7 +2503,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionLocked.php b/clients/GitHub/src/Schema/WebhookDiscussionLocked.php index 635786592e6..b6d57c8e136 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionLocked.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionLocked.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionPinned.php b/clients/GitHub/src/Schema/WebhookDiscussionPinned.php index b6a588c0ed8..b7b330dd9cd 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionPinned.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionPinned.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionReopened.php b/clients/GitHub/src/Schema/WebhookDiscussionReopened.php index 52cf5e8d012..f8cefa961e2 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionReopened.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionReopened.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionTransferred.php b/clients/GitHub/src/Schema/WebhookDiscussionTransferred.php index 56dbb5a6b68..eff5e38fd3b 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionTransferred.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionTransferred.php @@ -445,6 +445,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2341,6 +2413,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -4292,7 +4436,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "new_repository": { "id": 42, @@ -4661,7 +4825,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionTransferred/Changes.php b/clients/GitHub/src/Schema/WebhookDiscussionTransferred/Changes.php index 2f74dca8518..aea5be499f0 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionTransferred/Changes.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionTransferred/Changes.php @@ -429,6 +429,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2003,7 +2075,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "new_repository": { "id": 42, diff --git a/clients/GitHub/src/Schema/WebhookDiscussionUnanswered.php b/clients/GitHub/src/Schema/WebhookDiscussionUnanswered.php index 248f6c1236e..972992d2517 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionUnanswered.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionUnanswered.php @@ -438,6 +438,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2487,7 +2559,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "old_answer": { "author_association": "OWNER", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionUnlabeled.php b/clients/GitHub/src/Schema/WebhookDiscussionUnlabeled.php index 81c1fabd676..8bfefeca45a 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionUnlabeled.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionUnlabeled.php @@ -438,6 +438,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2431,7 +2503,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionUnlocked.php b/clients/GitHub/src/Schema/WebhookDiscussionUnlocked.php index dbfddd3a7c8..1b17164d6ca 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionUnlocked.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionUnlocked.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookDiscussionUnpinned.php b/clients/GitHub/src/Schema/WebhookDiscussionUnpinned.php index ceea5c5db79..094d0fcbfde 100644 --- a/clients/GitHub/src/Schema/WebhookDiscussionUnpinned.php +++ b/clients/GitHub/src/Schema/WebhookDiscussionUnpinned.php @@ -437,6 +437,78 @@ "format": "uri" } } + }, + "labels": { + "type": "array", + "items": { + "title": "Label", + "required": [ + "id", + "node_id", + "url", + "name", + "description", + "color", + "default" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the label.", + "format": "int64", + "examples": [ + 208045946 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDU6TGFiZWwyMDgwNDU5NDY=" + ] + }, + "url": { + "type": "string", + "description": "URL for the label", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug" + ] + }, + "name": { + "type": "string", + "description": "The name of the label.", + "examples": [ + "bug" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Optional description of the label, such as its purpose.", + "examples": [ + "Something isn\'t working" + ] + }, + "color": { + "type": "string", + "description": "6-character hex code, without the leading #, identifying the color", + "examples": [ + "FFFFFF" + ] + }, + "default": { + "type": "boolean", + "description": "Whether this label comes by default in a new repository.", + "examples": [ + true + ] + } + }, + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)." + } } }, "description": "A Discussion in a repository." @@ -2387,7 +2459,27 @@ "subscriptions_url": "https:\\/\\/example.com\\/", "type": "Organization", "url": "https:\\/\\/example.com\\/" - } + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + }, + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https:\\/\\/api.github.com\\/repositories\\/42\\/labels\\/bug", + "name": "bug", + "description": "Something isn\'t working", + "color": "FFFFFF", + "default": true + } + ] }, "enterprise": { "description": "generated", diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php index c70d637e54b..c308f933a2f 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php @@ -2199,6 +2199,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -2316,6 +2393,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -2627,7 +2708,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -2657,7 +2738,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2688,7 +2769,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -2718,7 +2799,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -2739,6 +2820,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php index ee816301c16..364dc655374 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -2199,6 +2199,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -2316,6 +2393,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -2627,7 +2708,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -2657,7 +2738,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2688,7 +2769,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -2718,7 +2799,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -2739,6 +2820,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php index b8c2b4eae4a..a8c6416dd97 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php @@ -2199,6 +2199,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -2316,6 +2393,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -2627,7 +2708,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -2657,7 +2738,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2688,7 +2769,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -2718,7 +2799,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -2739,6 +2820,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -3099,6 +3184,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -3216,6 +3378,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -3527,7 +3693,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -3557,7 +3723,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -3588,7 +3754,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -3618,7 +3784,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -3639,6 +3805,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -3826,6 +3996,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -3943,6 +4190,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -4254,7 +4505,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -4284,7 +4535,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -4315,7 +4566,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -4345,7 +4596,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -4366,6 +4617,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -4556,6 +4811,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -4673,6 +5005,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -4984,7 +5320,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -5014,7 +5350,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -5045,7 +5381,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -5075,7 +5411,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -5096,6 +5432,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php index 6b42a19ad66..a28ddc3992e 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php @@ -252,6 +252,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -369,6 +446,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -680,7 +761,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -710,7 +791,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -741,7 +822,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -771,7 +852,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -792,6 +873,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -979,6 +1064,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -1096,6 +1258,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -1407,7 +1573,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -1437,7 +1603,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1468,7 +1634,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -1498,7 +1664,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -1519,6 +1685,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -1709,6 +1879,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -1826,6 +2073,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -2137,7 +2388,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -2167,7 +2418,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2198,7 +2449,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -2228,7 +2479,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -2249,6 +2500,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php index 664683eab40..1c77dc65533 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php @@ -91,6 +91,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -208,6 +285,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -519,7 +600,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -549,7 +630,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -580,7 +661,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -610,7 +691,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -631,6 +712,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -818,6 +903,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -935,6 +1097,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -1246,7 +1412,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -1276,7 +1442,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -1307,7 +1473,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -1337,7 +1503,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -1358,6 +1524,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -1548,6 +1718,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -1665,6 +1912,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -1976,7 +2227,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -2006,7 +2257,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -2037,7 +2288,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -2067,7 +2318,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -2088,6 +2339,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php index f589bdeaf62..3f58d19f73a 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php @@ -92,6 +92,83 @@ }, "description": "Prevent merge commits from being pushed to matching refs." }, + { + "title": "merge_queue", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "merge_queue" + ], + "type": "string" + }, + "parameters": { + "required": [ + "check_response_timeout_minutes", + "grouping_strategy", + "max_entries_to_build", + "max_entries_to_merge", + "merge_method", + "min_entries_to_merge", + "min_entries_to_merge_wait_minutes" + ], + "type": "object", + "properties": { + "check_response_timeout_minutes": { + "maximum": 360, + "minimum": 1, + "type": "integer", + "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed" + }, + "grouping_strategy": { + "enum": [ + "ALLGREEN", + "HEADGREEN" + ], + "type": "string", + "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + }, + "max_entries_to_build": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time." + }, + "max_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The maximum number of PRs that will be merged together in a group." + }, + "merge_method": { + "enum": [ + "MERGE", + "SQUASH", + "REBASE" + ], + "type": "string", + "description": "Method to use when merging changes from queued pull requests." + }, + "min_entries_to_merge": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The minimum number of PRs that will be merged together in a group." + }, + "min_entries_to_merge_wait_minutes": { + "maximum": 360, + "minimum": 0, + "type": "integer", + "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged." + } + } + } + }, + "description": "Merges must be performed via a merge queue." + }, { "title": "required_deployments", "required": [ @@ -209,6 +286,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "required_status_checks": { "type": "array", "items": { @@ -520,7 +601,7 @@ } } }, - "description": "Note: file_path_restriction is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_path_restriction` is in beta and subject to change.\\n\\nPrevent commits that include changes in specified file paths from being pushed to the commit graph." }, { "title": "max_file_path_length", @@ -550,7 +631,7 @@ } } }, - "description": "Note: max_file_path_length is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `max_file_path_length` is in beta and subject to change.\\n\\nPrevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." }, { "title": "file_extension_restriction", @@ -581,7 +662,7 @@ } } }, - "description": "Note: file_extension_restriction is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." + "description": "> [!NOTE]\\n> `file_extension_restriction` is in beta and subject to change.\\n\\nPrevent commits that include files with specified file extensions from being pushed to the commit graph." }, { "title": "max_file_size", @@ -611,7 +692,7 @@ } } }, - "description": "Note: max_file_size is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." + "description": "> [!NOTE]\\n> `max_file_size` is in beta and subject to change.\\n\\nPrevent commits that exceed a specified file size limit from being pushed to the commit." }, { "title": "workflows", @@ -632,6 +713,10 @@ ], "type": "object", "properties": { + "do_not_enforce_on_create": { + "type": "boolean", + "description": "Allow repositories and branches to be created if a check would otherwise prohibit it." + }, "workflows": { "type": "array", "items": { @@ -788,7 +873,7 @@ * rule: A repository rule. */ public function __construct(#[Rule] - public Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleset\Rules\Fourteen|Schema\RepositoryRuleset\Rules\Fifteen|Schema\RepositoryRuleset\Rules\Sixteen|Schema\RepositoryRuleset\Rules\Seventeen|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning|null $rule, public Schema\WebhookRepositoryRulesetEdited\Changes\Rules\Updated\Changes|null $changes,) + public Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleset\Rules\Fifteen|Schema\RepositoryRuleset\Rules\Sixteen|Schema\RepositoryRuleset\Rules\Seventeen|Schema\RepositoryRuleset\Rules\Eighteen|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning|null $rule, public Schema\WebhookRepositoryRulesetEdited\Changes\Rules\Updated\Changes|null $changes,) { } } diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index b764be58bda..3ed879564bd 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -186,7 +186,7 @@ function authHeader(): string assertType('', $client->call('PATCH /orgs/{org}/code-security/configurations/{configuration_id}')); assertType('', $client->call('POST /orgs/{org}/code-security/configurations/{configuration_id}/attach')); assertType('', $client->call('PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults')); -assertType('Observable', $client->call('GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories')); +assertType('iterable', $client->call('GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories')); assertType('', $client->call('GET /orgs/{org}/codespaces')); assertType('', $client->call('PUT /orgs/{org}/codespaces/access')); assertType('', $client->call('POST /orgs/{org}/codespaces/access/selected_users')); @@ -859,8 +859,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('Observable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); +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}/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 fd830970019..58f58adbd3e 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -6281,7 +6281,7 @@ paths: default: disabled enforcement: type: string - description: The status of enforcement + description: The enforcement status for a security configuration enum: - enforced - unenforced @@ -6543,7 +6543,7 @@ paths: - not_set enforcement: type: string - description: The status of enforcement + description: The enforcement status for a security configuration enum: - enforced - unenforced @@ -6778,7 +6778,7 @@ paths: description: |- A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. - Can be: `all`, `attached`, `attaching`, `detached`, `enforced`, `failed`, `updating` + Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` in: query required: false schema: @@ -73557,6 +73557,78 @@ components: type: string enum: - required_linear_history + repository-rule-merge-queue: + title: merge_queue + description: Merges must be performed via a merge queue. + type: object + required: + - type + properties: + type: + type: string + enum: + - merge_queue + parameters: + type: object + properties: + check_response_timeout_minutes: + type: integer + description: Maximum time for a required status check to report a conclusion. + After this much time has elapsed, checks that have not reported a + conclusion will be assumed to have failed + minimum: 1 + maximum: 360 + grouping_strategy: + type: string + description: When set to ALLGREEN, the merge commit created by merge + queue for each PR in the group must pass all required checks to merge. + When set to HEADGREEN, only the commit at the head of the merge group, + i.e. the commit containing changes from all of the PRs in the group, + must pass its required checks to merge. + enum: + - ALLGREEN + - HEADGREEN + max_entries_to_build: + type: integer + description: Limit the number of queued pull requests requesting checks + and workflow runs at the same time. + minimum: 0 + maximum: 100 + max_entries_to_merge: + type: integer + description: The maximum number of PRs that will be merged together + in a group. + minimum: 0 + maximum: 100 + merge_method: + type: string + description: Method to use when merging changes from queued pull requests. + enum: + - MERGE + - SQUASH + - REBASE + min_entries_to_merge: + type: integer + description: The minimum number of PRs that will be merged together + in a group. + minimum: 0 + maximum: 100 + min_entries_to_merge_wait_minutes: + type: integer + description: The time merge queue should wait after the first PR is + added to the queue for the minimum group size to be met. After this + time has elapsed, the minimum group size will be ignored and a smaller + group will be merged. + minimum: 0 + maximum: 360 + required: + - check_response_timeout_minutes + - grouping_strategy + - max_entries_to_build + - max_entries_to_merge + - merge_method + - min_entries_to_merge + - min_entries_to_merge_wait_minutes repository-rule-required-deployments: title: required_deployments description: Choose which environments must be successfully deployed to before @@ -73664,6 +73736,10 @@ components: parameters: type: object properties: + do_not_enforce_on_create: + type: boolean + description: Allow repositories and branches to be created if a check + would otherwise prohibit it. required_status_checks: type: array description: Status checks that are required. @@ -73906,6 +73982,10 @@ components: parameters: type: object properties: + do_not_enforce_on_create: + type: boolean + description: Allow repositories and branches to be created if a check + would otherwise prohibit it. workflows: type: array description: Workflows that must pass for this rule to pass. @@ -73980,6 +74060,7 @@ components: - "$ref": "#/components/schemas/repository-rule-update" - "$ref": "#/components/schemas/repository-rule-deletion" - "$ref": "#/components/schemas/repository-rule-required-linear-history" + - "$ref": "#/components/schemas/repository-rule-merge-queue" - "$ref": "#/components/schemas/repository-rule-required-deployments" - "$ref": "#/components/schemas/repository-rule-required-signatures" - "$ref": "#/components/schemas/repository-rule-pull-request" @@ -73992,7 +74073,8 @@ components: - "$ref": "#/components/schemas/repository-rule-tag-name-pattern" - title: file_path_restriction description: |- - Note: file_path_restriction is in beta and subject to change. + > [!NOTE] + > `file_path_restriction` is in beta and subject to change. Prevent commits that include changes in specified file paths from being pushed to the commit graph. type: object @@ -74016,7 +74098,8 @@ components: - restricted_file_paths - title: max_file_path_length description: |- - Note: max_file_path_length is in beta and subject to change. + > [!NOTE] + > `max_file_path_length` is in beta and subject to change. Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. type: object @@ -74039,7 +74122,8 @@ components: - max_file_path_length - title: file_extension_restriction description: |- - Note: file_extension_restriction is in beta and subject to change. + > [!NOTE] + > `file_extension_restriction` is in beta and subject to change. Prevent commits that include files with specified file extensions from being pushed to the commit graph. type: object @@ -74063,7 +74147,8 @@ components: - restricted_file_extensions - title: max_file_size description: |- - Note: max_file_size is in beta and subject to change. + > [!NOTE] + > `max_file_size` is in beta and subject to change. Prevent commits that exceed a specified file size limit from being pushed to the commit. type: object @@ -83765,6 +83850,7 @@ components: type: object properties: id: + description: Unique identifier for the label. type: integer format: int64 examples: @@ -83785,6 +83871,7 @@ components: examples: - bug description: + description: Optional description of the label, such as its purpose. type: - string - 'null' @@ -83797,6 +83884,7 @@ components: examples: - FFFFFF default: + description: Whether this label comes by default in a new repository. type: boolean examples: - true @@ -86842,6 +86930,9 @@ components: - allOf: - "$ref": "#/components/schemas/repository-rule-required-linear-history" - "$ref": "#/components/schemas/repository-rule-ruleset-info" + - allOf: + - "$ref": "#/components/schemas/repository-rule-merge-queue" + - "$ref": "#/components/schemas/repository-rule-ruleset-info" - allOf: - "$ref": "#/components/schemas/repository-rule-required-deployments" - "$ref": "#/components/schemas/repository-rule-ruleset-info" @@ -92094,6 +92185,10 @@ components: required: - login - id + labels: + type: array + items: + "$ref": "#/components/schemas/label" required: - repository_url - category @@ -201406,6 +201501,7 @@ components: secret_scanning_push_protection: disabled secret_scanning_validity_checks: disabled private_vulnerability_reporting: disabled + enforcement: enforced url: https://api.github.com/orgs/octo-org/code-security/configurations/1325 html_url: https://github.com/organizations/octo-org/settings/security_products/configurations/edit/1325 created_at: '2024-05-01T00:00:00Z'