diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index b511de2b243..7fb650c0f87 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -598,7 +598,7 @@ $client->operations()->classroom()->getAnAssignment( assignment_id: 13, You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/classroom/classroom#get-an-assignment). -### classroom/list-accepted-assigments-for-an-assignment +### classroom/list-accepted-assignments-for-an-assignment List accepted assignments for an assignment @@ -613,7 +613,7 @@ $client->call('GET /assignments/{assignment_id}/accepted_assignments', [ Operations method: ```php -$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignment( assignment_id: 13, +$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignment( assignment_id: 13, page: 1, per_page: 8, ); @@ -622,7 +622,7 @@ $client->operations()->classroom()->listAcceptedAssigmentsForAnAssignment( You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/classroom/classroom#list-accepted-assignments-for-an-assignment). -### classroom/list-accepted-assigments-for-an-assignment +### classroom/list-accepted-assignments-for-an-assignment List accepted assignments for an assignment @@ -637,7 +637,7 @@ $client->call('LIST /assignments/{assignment_id}/accepted_assignments', [ Operations method: ```php -$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignmentListing( assignment_id: 13, +$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignmentListing( assignment_id: 13, page: 1, per_page: 8, ); diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 939cfaca87c..c86fc159929 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "1286a2730d7f8da9f91dca4d989b2f56", + "specHash": "a5d0ef223e8ea4b0fd40cfba849d6268", "generatedFiles": { "files": [ { @@ -2180,7 +2180,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDequeued.php", - "hash": "92a7b10efed15fc67dc010bc763dbb2b" + "hash": "099da42b842b3c67542474d643d42688" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEdited.php", @@ -24956,7 +24956,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "5569b73dc45f3684b242e5513e522b01" + "hash": "0c755bbf08a0a859a5b877b090661cba" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", @@ -25060,7 +25060,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "927cd9b6993c00d49e35493bf5f5feb2" + "hash": "271ff22a0c68ea8026f79dd113305f17" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", @@ -25168,7 +25168,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "d89c7b3d447af4a3f24163abb6a5e844" + "hash": "6414e56629281c294082d1ed24987d74" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -27202,30 +27202,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/GetAnAssignmentTest.php", "hash": "427c8f092f8975a6ffdb2a455153c093" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php", - "hash": "8bf729e2f1dbc2a0e6c305cbd981c075" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php", - "hash": "13e1bbb9b710d03b1d7a91ac8a89b98d" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentTest.php", - "hash": "f51319bbc9dfe3d52eedf83d1c4c4b55" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php", - "hash": "0f15039bdf8da4dba93fa285a6c8f928" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php", - "hash": "bb0c35fd475ad9a6444e40f927d21132" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListingTest.php", - "hash": "6921831dd561f63e30fa8859f95d8498" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/GetAssignmentGrades.php", "hash": "d276ace321f6a368bc5d6049a84f8fd6" @@ -27336,15 +27312,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Classroom.php", - "hash": "557ff6b66132049d3ef6fb98acc7eb90" + "hash": "4f2cf8728235648cae15b1958de10bf2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Classroom.php", - "hash": "8500a5e091c0f4e698cd2f94530e2157" + "hash": "eb3e9bed508b999c4f9c087e4b6b703e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Classroom.php", - "hash": "f5a95d64563d6b91f87b9f9ba8f942a1" + "hash": "2dae55a3c52ed74b6e271d6fc9062a83" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Assignments\/AssignmentId.php", @@ -27776,11 +27752,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "b279bfe420072ca3881b316b41cde25a" + "hash": "33318fe30d614cf4a46450c45f71fb39" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "a3cd037b10acacb7fbfa8165f0c08dac" + "hash": "1533702d14f0bea8333c07baccff6dd2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30465,6 +30441,30 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CvssSeverities\/CvssVFour.php", "hash": "0fbb9d309995f6522a3f79655d329b79" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php", + "hash": "d3ee42178f38dd4d20f857193877a6ee" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php", + "hash": "4e0347cbe7214efbcccc91d3462c0ae2" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentTest.php", + "hash": "f81bfc12b82dbb782514fac2034e5fc5" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php", + "hash": "9ee1cc05ef0547dd757ef71a10d609aa" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php", + "hash": "ee3714c4146b9cfeaee88fc613c30ca4" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListingTest.php", + "hash": "9f83275b3264e5721c75f5e519252f6d" } ] }, diff --git a/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignment.php b/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignment.php similarity index 97% rename from clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignment.php rename to clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignment.php index 38150357334..7df2f72b319 100644 --- a/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignment.php +++ b/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignment.php @@ -20,9 +20,9 @@ use function json_decode; use function str_replace; -final class ListAcceptedAssigmentsForAnAssignment +final class ListAcceptedAssignmentsForAnAssignment { - public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment'; + public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment'; public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments'; /**The unique identifier of the classroom assignment. **/ private int $assignmentId; diff --git a/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php b/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php similarity index 97% rename from clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php rename to clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php index 56cfa22de4d..4f3408207dd 100644 --- a/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php +++ b/clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php @@ -20,9 +20,9 @@ use function json_decode; use function str_replace; -final class ListAcceptedAssigmentsForAnAssignmentListing +final class ListAcceptedAssignmentsForAnAssignmentListing { - public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment'; + public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment'; public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments'; /**The unique identifier of the classroom assignment. **/ private int $assignmentId; diff --git a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignment.php b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php similarity index 84% rename from clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignment.php rename to clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php index 5f0f1363f37..f4ecd391ec1 100644 --- a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignment.php +++ b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php @@ -15,19 +15,19 @@ use function React\Async\await; use function WyriHaximus\React\awaitObservable; -final readonly class ListAcceptedAssigmentsForAnAssignment +final readonly class ListAcceptedAssignmentsForAnAssignment { - public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment'; + public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment'; public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments'; public function __construct(private Browser $browser, private AuthenticationInterface $authentication, private SchemaValidator $responseSchemaValidator, private Internal\Hydrator\Operation\Assignments\AssignmentId\AcceptedAssignments $hydrator) { } - /** @return Observable */ + /** @return iterable */ public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php similarity index 83% rename from clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php rename to clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php index b68d3b842d8..bb233ae63b7 100644 --- a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php +++ b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php @@ -15,19 +15,19 @@ use function React\Async\await; use function WyriHaximus\React\awaitObservable; -final readonly class ListAcceptedAssigmentsForAnAssignmentListing +final readonly class ListAcceptedAssignmentsForAnAssignmentListing { - public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment'; + public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment'; public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments'; public function __construct(private Browser $browser, private AuthenticationInterface $authentication, private SchemaValidator $responseSchemaValidator, private Internal\Hydrator\Operation\Assignments\AssignmentId\AcceptedAssignments $hydrator) { } - /** @return Observable */ + /** @return iterable */ public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operators.php b/clients/GitHub/src/Internal/Operators.php index f8885235b1d..71b8a0a56bf 100644 --- a/clients/GitHub/src/Internal/Operators.php +++ b/clients/GitHub/src/Internal/Operators.php @@ -37,8 +37,8 @@ final class Operators private Internal\Operator\Apps\ScopeToken|null $apps👷ScopeToken = null; private Internal\Operator\Apps\GetBySlug|null $apps👷GetBySlug = null; private Internal\Operator\Classroom\GetAnAssignment|null $classroom👷GetAnAssignment = null; - private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment|null $classroom👷ListAcceptedAssigmentsForAnAssignment = null; - private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssigmentsForAnAssignmentListing = null; + private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment|null $classroom👷ListAcceptedAssignmentsForAnAssignment = null; + private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssignmentsForAnAssignmentListing = null; private Internal\Operator\Classroom\GetAssignmentGrades|null $classroom👷GetAssignmentGrades = null; private Internal\Operator\Classroom\ListClassrooms|null $classroom👷ListClassrooms = null; private Internal\Operator\Classroom\ListClassroomsListing|null $classroom👷ListClassroomsListing = null; @@ -1378,22 +1378,22 @@ public function classroom👷GetAnAssignment(): Internal\Operator\Classroom\GetA return $this->classroom👷GetAnAssignment; } - public function classroom👷ListAcceptedAssigmentsForAnAssignment(): Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment + public function classroom👷ListAcceptedAssignmentsForAnAssignment(): Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment { - if ($this->classroom👷ListAcceptedAssigmentsForAnAssignment instanceof Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment === false) { - $this->classroom👷ListAcceptedAssigmentsForAnAssignment = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); + if ($this->classroom👷ListAcceptedAssignmentsForAnAssignment instanceof Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment === false) { + $this->classroom👷ListAcceptedAssignmentsForAnAssignment = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); } - return $this->classroom👷ListAcceptedAssigmentsForAnAssignment; + return $this->classroom👷ListAcceptedAssignmentsForAnAssignment; } - public function classroom👷ListAcceptedAssigmentsForAnAssignmentListing(): Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing + public function classroom👷ListAcceptedAssignmentsForAnAssignmentListing(): Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing { - if ($this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing instanceof Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing === false) { - $this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); + if ($this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing instanceof Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing === false) { + $this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); } - return $this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing; + return $this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing; } public function classroom👷GetAssignmentGrades(): Internal\Operator\Classroom\GetAssignmentGrades diff --git a/clients/GitHub/src/Internal/Router/Get/Classroom.php b/clients/GitHub/src/Internal/Router/Get/Classroom.php index c540fb48537..13668912cbd 100644 --- a/clients/GitHub/src/Internal/Router/Get/Classroom.php +++ b/clients/GitHub/src/Internal/Router/Get/Classroom.php @@ -71,8 +71,8 @@ public function getAClassroom(array $params): \ApiClients\Client\GitHub\Schema\C return $operator->call($arguments['classroom_id']); } - /** @return Observable */ - public function listAcceptedAssigmentsForAnAssignment(array $params): iterable + /** @return iterable */ + public function listAcceptedAssignmentsForAnAssignment(array $params): iterable { $arguments = []; if (array_key_exists('assignment_id', $params) === false) { @@ -93,7 +93,7 @@ public function listAcceptedAssigmentsForAnAssignment(array $params): iterable $arguments['per_page'] = $params['per_page']; unset($params['per_page']); - $operator = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); + $operator = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); return $operator->call($arguments['assignment_id'], $arguments['page'], $arguments['per_page']); } diff --git a/clients/GitHub/src/Internal/Router/Get/Four.php b/clients/GitHub/src/Internal/Router/Get/Four.php index 918bf81e676..9ce7e79d810 100644 --- a/clients/GitHub/src/Internal/Router/Get/Four.php +++ b/clients/GitHub/src/Internal/Router/Get/Four.php @@ -34,7 +34,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|iterable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { @@ -60,7 +60,7 @@ public function call(string $call, array $params, array $pathChunks): WebhookCon if ($pathChunks[2] === '{assignment_id}') { if ($pathChunks[3] === 'accepted_assignments') { if ($call === 'GET /assignments/{assignment_id}/accepted_assignments') { - return $this->routers->internal🔀Router🔀Get🔀Classroom()->listAcceptedAssigmentsForAnAssignment($params); + return $this->routers->internal🔀Router🔀Get🔀Classroom()->listAcceptedAssignmentsForAnAssignment($params); } } elseif ($pathChunks[3] === 'grades') { if ($call === 'GET /assignments/{assignment_id}/grades') { diff --git a/clients/GitHub/src/Internal/Router/List/Classroom.php b/clients/GitHub/src/Internal/Router/List/Classroom.php index 455e5664fec..ca3e16477da 100644 --- a/clients/GitHub/src/Internal/Router/List/Classroom.php +++ b/clients/GitHub/src/Internal/Router/List/Classroom.php @@ -20,8 +20,8 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return Observable */ - public function listAcceptedAssigmentsForAnAssignmentListing(array $params): iterable + /** @return iterable */ + public function listAcceptedAssignmentsForAnAssignmentListing(array $params): iterable { $arguments = []; if (array_key_exists('assignment_id', $params) === false) { @@ -44,7 +44,7 @@ public function listAcceptedAssigmentsForAnAssignmentListing(array $params): ite unset($params['per_page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); + $operator = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments()); $items = [...$operator->call($arguments['assignment_id'], $arguments['page'], $arguments['per_page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Four.php b/clients/GitHub/src/Internal/Router/List/Four.php index ad4a6ffdaf4..ec44d6e3f8e 100644 --- a/clients/GitHub/src/Internal/Router/List/Four.php +++ b/clients/GitHub/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return iterable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { @@ -23,7 +23,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|W if ($pathChunks[2] === '{assignment_id}') { if ($pathChunks[3] === 'accepted_assignments') { if ($call === 'LIST /assignments/{assignment_id}/accepted_assignments') { - return $this->routers->internal🔀Router🔀List🔀Classroom()->listAcceptedAssigmentsForAnAssignmentListing($params); + return $this->routers->internal🔀Router🔀List🔀Classroom()->listAcceptedAssignmentsForAnAssignmentListing($params); } } } diff --git a/clients/GitHub/src/Operation/Classroom.php b/clients/GitHub/src/Operation/Classroom.php index 8501e435fac..57715ef90f5 100644 --- a/clients/GitHub/src/Operation/Classroom.php +++ b/clients/GitHub/src/Operation/Classroom.php @@ -20,16 +20,16 @@ public function getAnAssignment(int $assignmentId): ClassroomAssignment return $this->operators->classroom👷GetAnAssignment()->call($assignmentId); } - /** @return Observable */ - public function listAcceptedAssigmentsForAnAssignment(int $assignmentId, int $page, int $perPage): iterable + /** @return iterable */ + public function listAcceptedAssignmentsForAnAssignment(int $assignmentId, int $page, int $perPage): iterable { - return $this->operators->classroom👷ListAcceptedAssigmentsForAnAssignment()->call($assignmentId, $page, $perPage); + return $this->operators->classroom👷ListAcceptedAssignmentsForAnAssignment()->call($assignmentId, $page, $perPage); } - /** @return Observable */ - public function listAcceptedAssigmentsForAnAssignmentListing(int $assignmentId, int $page, int $perPage): iterable + /** @return iterable */ + public function listAcceptedAssignmentsForAnAssignmentListing(int $assignmentId, int $page, int $perPage): iterable { - return $this->operators->classroom👷ListAcceptedAssigmentsForAnAssignmentListing()->call($assignmentId, $page, $perPage); + return $this->operators->classroom👷ListAcceptedAssignmentsForAnAssignmentListing()->call($assignmentId, $page, $perPage); } /** @return Observable */ diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 87997385669..fae031631df 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -148,11 +148,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /assignments/{assignment_id}/accepted_assignments') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /assignments/{assignment_id}/accepted_assignments') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /assignments/{assignment_id}/grades') { diff --git a/clients/GitHub/src/Schema/WebhookPullRequestDequeued.php b/clients/GitHub/src/Schema/WebhookPullRequestDequeued.php index 66b097d532f..f3d2030dd6c 100644 --- a/clients/GitHub/src/Schema/WebhookPullRequestDequeued.php +++ b/clients/GitHub/src/Schema/WebhookPullRequestDequeued.php @@ -3277,6 +3277,20 @@ } }, "reason": { + "enum": [ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT" + ], "type": "string" }, "repository": { @@ -5609,7 +5623,7 @@ "url": "https:\\/\\/example.com\\/" } }, - "reason": "generated", + "reason": "INVALID_MERGE_COMMIT", "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListingTest.php b/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListingTest.php similarity index 62% rename from clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListingTest.php rename to clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListingTest.php index 72ef32f4c5d..95ced7f12ef 100644 --- a/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListingTest.php +++ b/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListingTest.php @@ -6,7 +6,7 @@ use WyriHaximus\AsyncTestUtilities\AsyncTestCase; -/** @covers \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignmentListing */ -final class ListAcceptedAssigmentsForAnAssignmentListingTest extends AsyncTestCase +/** @covers \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing */ +final class ListAcceptedAssignmentsForAnAssignmentListingTest extends AsyncTestCase { } diff --git a/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentTest.php b/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentTest.php similarity index 64% rename from clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentTest.php rename to clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentTest.php index 26fb23a8c25..92122a7a035 100644 --- a/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentTest.php +++ b/clients/GitHub/tests/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentTest.php @@ -6,7 +6,7 @@ use WyriHaximus\AsyncTestUtilities\AsyncTestCase; -/** @covers \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignment */ -final class ListAcceptedAssigmentsForAnAssignmentTest extends AsyncTestCase +/** @covers \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment */ +final class ListAcceptedAssignmentsForAnAssignmentTest extends AsyncTestCase { } diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 7d6cb950726..1a2c10a65da 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -43,8 +43,8 @@ function authHeader(): string assertType('', $client->call('POST /applications/{client_id}/token/scoped')); assertType('', $client->call('GET /apps/{app_slug}')); assertType('', $client->call('GET /assignments/{assignment_id}')); -assertType('Observable', $client->call('GET /assignments/{assignment_id}/accepted_assignments')); -assertType('Observable', $client->call('LIST /assignments/{assignment_id}/accepted_assignments')); +assertType('iterable', $client->call('GET /assignments/{assignment_id}/accepted_assignments')); +assertType('iterable', $client->call('LIST /assignments/{assignment_id}/accepted_assignments')); assertType('Observable', $client->call('GET /assignments/{assignment_id}/grades')); assertType('Observable', $client->call('GET /classrooms')); assertType('Observable', $client->call('LIST /classrooms')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index a5872d7ac8a..d9c8949108a 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -1194,7 +1194,7 @@ paths: the assignment. tags: - classroom - operationId: classroom/list-accepted-assigments-for-an-assignment + operationId: classroom/list-accepted-assignments-for-an-assignment externalDocs: description: API method documentation url: https://docs.github.com/rest/classroom/classroom#list-accepted-assignments-for-an-assignment @@ -141308,6 +141308,19 @@ components: - draft reason: type: string + enum: + - UNKNOWN_REMOVAL_REASON + - MANUAL + - MERGE + - MERGE_CONFLICT + - CI_FAILURE + - CI_TIMEOUT + - ALREADY_MERGED + - QUEUE_CLEARED + - ROLL_BACK + - BRANCH_PROTECTIONS + - GIT_TREE_INVALID + - INVALID_MERGE_COMMIT repository: "$ref": "#/components/schemas/repository-webhooks" sender: