Skip to content

Commit 9af07aa

Browse files
authored
[GitHubAE] Update to 1.1.4-b07cb773742f257c8d52cf0355887f40 from 1.1.4-b96e16843c46ef9ccd10471ca464ed57
Detected Schema changes:
1 parent 4f06d89 commit 9af07aa

713 files changed

Lines changed: 2461 additions & 2778 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7297,6 +7297,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', [
72977297
'owner' => 'generated',
72987298
'repo' => 'generated',
72997299
'run_id' => 6,
7300+
'name' => 'generated',
73007301
'per_page' => 8,
73017302
'page' => 1,
73027303
]);
@@ -7307,6 +7308,7 @@ Operations method:
73077308
$client->operations()->actions()->listWorkflowRunArtifacts( owner: 'generated',
73087309
repo: 'generated',
73097310
run_id: 6,
7311+
name: 'generated',
73107312
per_page: 8,
73117313
page: 1,
73127314
);

etc/openapi-client-generator.state

Lines changed: 716 additions & 716 deletions
Large diffs are not rendered by default.

src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Internal/Operation/Actions/ListWorkflowRunArtifacts.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,26 @@ final class ListWorkflowRunArtifacts
2929
private string $repo;
3030
/**The unique identifier of the workflow run. **/
3131
private int $runId;
32+
/**The name field of an artifact. When specified, only artifacts with this name will be returned. **/
33+
private string $name;
3234
/**The number of results per page (max 100). **/
3335
private int $perPage;
3436
/**Page number of the results to fetch. **/
3537
private int $page;
3638

37-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Actions\Runs\RunId\Artifacts $hydrator, string $owner, string $repo, int $runId, int $perPage = 30, int $page = 1)
39+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Actions\Runs\RunId\Artifacts $hydrator, string $owner, string $repo, int $runId, string $name, int $perPage = 30, int $page = 1)
3840
{
3941
$this->owner = $owner;
4042
$this->repo = $repo;
4143
$this->runId = $runId;
44+
$this->name = $name;
4245
$this->perPage = $perPage;
4346
$this->page = $page;
4447
}
4548

4649
public function createRequest(): RequestInterface
4750
{
48-
return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{run_id}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->runId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}'));
51+
return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{run_id}', '{name}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->runId, $this->name, $this->perPage, $this->page], self::PATH . '?name={name}&per_page={per_page}&page={page}'));
4952
}
5053

5154
public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json

src/Internal/Operation/Repos/CreateUsingTemplate.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ final class CreateUsingTemplate
2424
public const OPERATION_MATCH = 'POST /repos/{template_owner}/{template_repo}/generate';
2525
private const METHOD = 'POST';
2626
private const PATH = '/repos/{template_owner}/{template_repo}/generate';
27+
/**The account owner of the template repository. The name is not case sensitive. **/
28+
private string $templateOwner;
29+
/**The name of the template repository without the `.git` extension. The name is not case sensitive. **/
30+
private string $templateRepo;
2731

28-
public function __construct(private readonly SchemaValidator $requestSchemaValidator, private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\TemplateOwner\TemplateRepo\Generate $hydrator, private string $templateOwner, private string $templateRepo)
32+
public function __construct(private readonly SchemaValidator $requestSchemaValidator, private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\TemplateOwner\TemplateRepo\Generate $hydrator, string $templateOwner, string $templateRepo)
2933
{
34+
$this->templateOwner = $templateOwner;
35+
$this->templateRepo = $templateRepo;
3036
}
3137

3238
public function createRequest(array $data): RequestInterface

src/Internal/Operation/Repos/ListContributors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable|array
6262
$body = json_decode($response->getBody()->getContents(), true);
6363
switch ($code) {
6464
/**
65-
* if repository contains content
65+
* If repository contains content
6666
**/
6767
case 200:
6868
return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Contributor {

src/Internal/Operation/Repos/ListContributorsListing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable|array
6262
$body = json_decode($response->getBody()->getContents(), true);
6363
switch ($code) {
6464
/**
65-
* if repository contains content
65+
* If repository contains content
6666
**/
6767
case 200:
6868
return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Contributor {

src/Internal/Operator/Actions/CancelWorkflowRun.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace ApiClients\Client\GitHubAE\Internal\Operator\Actions;
66

77
use ApiClients\Client\GitHubAE\Internal;
8-
use ApiClients\Client\GitHubAE\Schema;
98
use ApiClients\Client\GitHubAE\Schema\EmptyObject;
109
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
1110
use League\OpenAPIValidation\Schema\SchemaValidator;
@@ -25,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2524
{
2625
}
2726

28-
/** @return Schema\EmptyObject */
27+
/** @return */
2928
public function call(string $owner, string $repo, int $runId): EmptyObject|array
3029
{
3130
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Actions\CancelWorkflowRun($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $runId);

src/Internal/Operator/Actions/CreateRegistrationTokenForOrg.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace ApiClients\Client\GitHubAE\Internal\Operator\Actions;
66

77
use ApiClients\Client\GitHubAE\Internal;
8-
use ApiClients\Client\GitHubAE\Schema;
98
use ApiClients\Client\GitHubAE\Schema\AuthenticationToken;
109
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
1110
use League\OpenAPIValidation\Schema\SchemaValidator;
@@ -25,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2524
{
2625
}
2726

28-
/** @return Schema\AuthenticationToken */
27+
/** @return */
2928
public function call(string $org): AuthenticationToken|array
3029
{
3130
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Actions\CreateRegistrationTokenForOrg($this->responseSchemaValidator, $this->hydrator, $org);

0 commit comments

Comments
 (0)