Skip to content

[GitHub] Update to 1.1.4-f0ef821141c0585bc8759f53f482f086 from 1.1.4-c6249831ad99957f8d160f21b8d426dd #1313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions clients/GitHub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7334,6 +7334,7 @@ Using the `call` method:
```php
$client->call('GET /orgs/{org}/rulesets', [
'org' => 'generated',
'targets' => 'generated',
'per_page' => 8,
'page' => 1,
]);
Expand All @@ -7342,6 +7343,7 @@ $client->call('GET /orgs/{org}/rulesets', [
Operations method:
```php
$client->operations()->repos()->getOrgRulesets( org: 'generated',
targets: 'generated',
per_page: 8,
page: 1,
);
Expand All @@ -7358,6 +7360,7 @@ Using the `call` method:
```php
$client->call('LIST /orgs/{org}/rulesets', [
'org' => 'generated',
'targets' => 'generated',
'per_page' => 8,
'page' => 1,
]);
Expand All @@ -7366,6 +7369,7 @@ $client->call('LIST /orgs/{org}/rulesets', [
Operations method:
```php
$client->operations()->repos()->getOrgRulesetsListing( org: 'generated',
targets: 'generated',
per_page: 8,
page: 1,
);
Expand Down Expand Up @@ -21034,6 +21038,7 @@ Using the `call` method:
$client->call('GET /repos/{owner}/{repo}/rulesets', [
'owner' => 'generated',
'repo' => 'generated',
'targets' => 'generated',
'per_page' => 8,
'page' => 1,
'includes_parents' => ,
Expand All @@ -21044,6 +21049,7 @@ Operations method:
```php
$client->operations()->repos()->getRepoRulesets( owner: 'generated',
repo: 'generated',
targets: 'generated',
per_page: 8,
page: 1,
includes_parents: ,
Expand All @@ -21062,6 +21068,7 @@ Using the `call` method:
$client->call('LIST /repos/{owner}/{repo}/rulesets', [
'owner' => 'generated',
'repo' => 'generated',
'targets' => 'generated',
'per_page' => 8,
'page' => 1,
'includes_parents' => ,
Expand All @@ -21072,6 +21079,7 @@ Operations method:
```php
$client->operations()->repos()->getRepoRulesetsListing( owner: 'generated',
repo: 'generated',
targets: 'generated',
per_page: 8,
page: 1,
includes_parents: ,
Expand Down
50 changes: 25 additions & 25 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "c6249831ad99957f8d160f21b8d426dd",
"specHash": "f0ef821141c0585bc8759f53f482f086",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -288,7 +288,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationFull.php",
"hash": "3a018ac7ea2387bbc8405cb2b90dfd3f"
"hash": "407d381923a1ad0d6ed16069bc371c77"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsCacheUsageOrgEnterprise.php",
Expand Down Expand Up @@ -5576,7 +5576,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
"hash": "969f2d59467f854edc18a940b109cab4"
"hash": "5779931bdcabc12f26dbc4d46b041ffe"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
Expand Down Expand Up @@ -5612,7 +5612,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
"hash": "af3d3a3094434c46deb56bfd146053fc"
"hash": "051cd6393628919848d5bab73f4446bb"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
Expand Down Expand Up @@ -15116,27 +15116,27 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetOrgRulesets.php",
"hash": "f186bcef71e86804eca024d292b3f811"
"hash": "8a06356935685c3befad838f68cf6849"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesets.php",
"hash": "26eea37b783100bfda2c29351adc1cb6"
"hash": "c1b9491afbbfeb0c1780da092ed219dd"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsTest.php",
"hash": "0900e8f755084825ae335e59da5c1017"
"hash": "1fae6216bc3e0072feba73cf1a75431e"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetOrgRulesetsListing.php",
"hash": "67f8d50e1626a28e8db866bfdc095513"
"hash": "afb9dd110759316873c1e25291edfd0f"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesetsListing.php",
"hash": "f6664c53f15770ed2bbab743c4bafdb5"
"hash": "48dbf3810af9d5cfda666701a04716a4"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsListingTest.php",
"hash": "3e3696aafc3fe4dcf9243303476b31ce"
"hash": "4c4546290cd5fa5d6d41f9d6af966889"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CreateOrgRuleset.php",
Expand Down Expand Up @@ -21012,27 +21012,27 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetRepoRulesets.php",
"hash": "248c27baa5290c79dd31cf4e3b2879a9"
"hash": "b0791c7385174babd0fd9c9294c2ead3"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesets.php",
"hash": "3714305a7f4eb1977ac508836a2c734a"
"hash": "63f54855c1abc54938d3e76f0022b157"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsTest.php",
"hash": "e8a1b6d538839ad4447ee0aa5e423f96"
"hash": "6a1625f17e937caa40926301788c0161"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetRepoRulesetsListing.php",
"hash": "084e7d414e7f4cde5b5dd3bafe2fe1df"
"hash": "a18f754a9185a5a17c89dde8a620a89d"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetsListing.php",
"hash": "615441c1ad2844708d22ed1267360cf9"
"hash": "1c0658faa66ba7e8e843ccd03c453b03"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsListingTest.php",
"hash": "01ecefa538da9b0f5a71064fe9001a19"
"hash": "3a8838ca28a9c779716466668566efa8"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CreateRepoRuleset.php",
Expand Down Expand Up @@ -24460,7 +24460,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
"hash": "15b6c3b26b0222befe543a77d1d425dc"
"hash": "f6fc5c47a25e0c7aa3830069f5c6b15b"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
Expand Down Expand Up @@ -24736,7 +24736,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
"hash": "58feacbb3f5aceff6543f0db3e7d382f"
"hash": "8ac3762840b7518082ff0791571013ac"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
Expand Down Expand Up @@ -24948,11 +24948,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
"hash": "f248e13197b434832a0cbb6e3c9f1df4"
"hash": "47b25cd3d28cc3944541a5100a44428b"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
"hash": "0846a936eb0a3e31a24ddb21a9bf9124"
"hash": "75ae89c5b320acc265942e34810063d8"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
Expand Down Expand Up @@ -25052,11 +25052,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
"hash": "0bd1bbcad8e6f0a66a2ee13388a836ac"
"hash": "d884362f660768c44ec3cb877273ea4f"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
"hash": "847f3fb360c2b185cfe50d6fb2ad225b"
"hash": "089c23b82d3036be6791c77247892fa4"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
Expand Down Expand Up @@ -25356,7 +25356,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org.php",
"hash": "961e57d26030b87464ac3a800d853129"
"hash": "7669d3f60474dfb61465e812ecc0d630"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/Cache\/Usage.php",
Expand Down Expand Up @@ -27736,11 +27736,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "b279bfe420072ca3881b316b41cde25a"
"hash": "f5c81d72072dc36f546288473c6cef6a"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "a3cd037b10acacb7fbfa8165f0c08dac"
"hash": "09d3f81ea6b7302920dbb397f2c52bd5"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down
19 changes: 0 additions & 19 deletions clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga

after_diskUsage:

$value = $payload['collaborators'] ?? null;

if ($value === null) {
$properties['collaborators'] = null;
goto after_collaborators;
}

$properties['collaborators'] = $value;

after_collaborators:

$value = $payload['billing_email'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -1095,14 +1084,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_diskUsage: $result['disk_usage'] = $diskUsage;

$collaborators = $object->collaborators;

if ($collaborators === null) {
goto after_collaborators;
}

after_collaborators: $result['collaborators'] = $collaborators;

$billingEmail = $object->billingEmail;

if ($billingEmail === null) {
Expand Down
10 changes: 8 additions & 2 deletions clients/GitHub/src/Internal/Operation/Repos/GetOrgRulesets.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,27 @@ final class GetOrgRulesets
public const OPERATION_MATCH = 'GET /orgs/{org}/rulesets';
/**The organization name. The name is not case sensitive. **/
private string $org;
/**A comma-separated list of rule targets to filter by.
If provided, only rulesets that apply to the specified targets will be returned.
For example, `branch,tag,push`.
**/
private string $targets;
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private int $perPage;
/**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private int $page;

public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Rulesets $hydrator, string $org, int $perPage = 30, int $page = 1)
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Rulesets $hydrator, string $org, string $targets, int $perPage = 30, int $page = 1)
{
$this->org = $org;
$this->targets = $targets;
$this->perPage = $perPage;
$this->page = $page;
}

public function createRequest(): RequestInterface
{
return new Request('GET', str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], '/orgs/{org}/rulesets' . '?per_page={per_page}&page={page}'));
return new Request('GET', str_replace(['{org}', '{targets}', '{per_page}', '{page}'], [$this->org, $this->targets, $this->perPage, $this->page], '/orgs/{org}/rulesets' . '?targets={targets}&per_page={per_page}&page={page}'));
}

/** @return Observable<Schema\RepositoryRuleset> */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,27 @@ final class GetOrgRulesetsListing
public const OPERATION_MATCH = 'LIST /orgs/{org}/rulesets';
/**The organization name. The name is not case sensitive. **/
private string $org;
/**A comma-separated list of rule targets to filter by.
If provided, only rulesets that apply to the specified targets will be returned.
For example, `branch,tag,push`.
**/
private string $targets;
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private int $perPage;
/**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private int $page;

public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Rulesets $hydrator, string $org, int $perPage = 30, int $page = 1)
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Rulesets $hydrator, string $org, string $targets, int $perPage = 30, int $page = 1)
{
$this->org = $org;
$this->targets = $targets;
$this->perPage = $perPage;
$this->page = $page;
}

public function createRequest(): RequestInterface
{
return new Request('GET', str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], '/orgs/{org}/rulesets' . '?per_page={per_page}&page={page}'));
return new Request('GET', str_replace(['{org}', '{targets}', '{per_page}', '{page}'], [$this->org, $this->targets, $this->perPage, $this->page], '/orgs/{org}/rulesets' . '?targets={targets}&per_page={per_page}&page={page}'));
}

/** @return Observable<Schema\RepositoryRuleset> */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,31 @@ final class GetRepoRulesets
private string $owner;
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
private string $repo;
/**A comma-separated list of rule targets to filter by.
If provided, only rulesets that apply to the specified targets will be returned.
For example, `branch,tag,push`.
**/
private string $targets;
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private int $perPage;
/**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private int $page;
/**Include rulesets configured at higher levels that apply to this repository **/
private bool $includesParents;

public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Rulesets $hydrator, string $owner, string $repo, int $perPage = 30, int $page = 1, bool $includesParents = true)
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Rulesets $hydrator, string $owner, string $repo, string $targets, int $perPage = 30, int $page = 1, bool $includesParents = true)
{
$this->owner = $owner;
$this->repo = $repo;
$this->targets = $targets;
$this->perPage = $perPage;
$this->page = $page;
$this->includesParents = $includesParents;
}

public function createRequest(): RequestInterface
{
return new Request('GET', str_replace(['{owner}', '{repo}', '{per_page}', '{page}', '{includes_parents}'], [$this->owner, $this->repo, $this->perPage, $this->page, $this->includesParents], '/repos/{owner}/{repo}/rulesets' . '?per_page={per_page}&page={page}&includes_parents={includes_parents}'));
return new Request('GET', str_replace(['{owner}', '{repo}', '{targets}', '{per_page}', '{page}', '{includes_parents}'], [$this->owner, $this->repo, $this->targets, $this->perPage, $this->page, $this->includesParents], '/repos/{owner}/{repo}/rulesets' . '?targets={targets}&per_page={per_page}&page={page}&includes_parents={includes_parents}'));
}

/** @return Observable<Schema\RepositoryRuleset> */
Expand Down
Loading
Loading