Skip to content

Commit 6d2ac36

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-f0ef821141c0585bc8759f53f482f086 from 1.1.4-c6249831ad99957f8d160f21b8d426dd
Detected Schema changes: ``` ├─┬Paths │ ├─┬/orgs/{org}/rulesets │ │ └─┬GET │ │ └──[➖] parameters (223775:13)❌ │ └─┬/repos/{owner}/{repo}/rulesets │ └─┬GET │ └──[➖] parameters (223775:13)❌ └─┬Components ├──[➖] parameters (223775:7)❌ └─┬organization-full └──[➕] properties (70755:9) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 2 | 2 | | components | 2 | 1 | Date: 10/10/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _3_ out of _4_ - **Removals**: _3_ - **Additions**: _1_ - **Breaking Removals**: _3_ ERROR: breaking changes discovered
1 parent 23ec5c2 commit 6d2ac36

26 files changed

+180
-137
lines changed

clients/GitHub/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7334,6 +7334,7 @@ Using the `call` method:
73347334
```php
73357335
$client->call('GET /orgs/{org}/rulesets', [
73367336
'org' => 'generated',
7337+
'targets' => 'generated',
73377338
'per_page' => 8,
73387339
'page' => 1,
73397340
]);
@@ -7342,6 +7343,7 @@ $client->call('GET /orgs/{org}/rulesets', [
73427343
Operations method:
73437344
```php
73447345
$client->operations()->repos()->getOrgRulesets( org: 'generated',
7346+
targets: 'generated',
73457347
per_page: 8,
73467348
page: 1,
73477349
);
@@ -7358,6 +7360,7 @@ Using the `call` method:
73587360
```php
73597361
$client->call('LIST /orgs/{org}/rulesets', [
73607362
'org' => 'generated',
7363+
'targets' => 'generated',
73617364
'per_page' => 8,
73627365
'page' => 1,
73637366
]);
@@ -7366,6 +7369,7 @@ $client->call('LIST /orgs/{org}/rulesets', [
73667369
Operations method:
73677370
```php
73687371
$client->operations()->repos()->getOrgRulesetsListing( org: 'generated',
7372+
targets: 'generated',
73697373
per_page: 8,
73707374
page: 1,
73717375
);
@@ -21034,6 +21038,7 @@ Using the `call` method:
2103421038
$client->call('GET /repos/{owner}/{repo}/rulesets', [
2103521039
'owner' => 'generated',
2103621040
'repo' => 'generated',
21041+
'targets' => 'generated',
2103721042
'per_page' => 8,
2103821043
'page' => 1,
2103921044
'includes_parents' => ,
@@ -21044,6 +21049,7 @@ Operations method:
2104421049
```php
2104521050
$client->operations()->repos()->getRepoRulesets( owner: 'generated',
2104621051
repo: 'generated',
21052+
targets: 'generated',
2104721053
per_page: 8,
2104821054
page: 1,
2104921055
includes_parents: ,
@@ -21062,6 +21068,7 @@ Using the `call` method:
2106221068
$client->call('LIST /repos/{owner}/{repo}/rulesets', [
2106321069
'owner' => 'generated',
2106421070
'repo' => 'generated',
21071+
'targets' => 'generated',
2106521072
'per_page' => 8,
2106621073
'page' => 1,
2106721074
'includes_parents' => ,
@@ -21072,6 +21079,7 @@ Operations method:
2107221079
```php
2107321080
$client->operations()->repos()->getRepoRulesetsListing( owner: 'generated',
2107421081
repo: 'generated',
21082+
targets: 'generated',
2107521083
per_page: 8,
2107621084
page: 1,
2107721085
includes_parents: ,

clients/GitHub/etc/openapi-client-generator.state

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "c6249831ad99957f8d160f21b8d426dd",
2+
"specHash": "f0ef821141c0585bc8759f53f482f086",
33
"generatedFiles": {
44
"files": [
55
{
@@ -288,7 +288,7 @@
288288
},
289289
{
290290
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationFull.php",
291-
"hash": "3a018ac7ea2387bbc8405cb2b90dfd3f"
291+
"hash": "407d381923a1ad0d6ed16069bc371c77"
292292
},
293293
{
294294
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsCacheUsageOrgEnterprise.php",
@@ -5576,7 +5576,7 @@
55765576
},
55775577
{
55785578
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5579-
"hash": "969f2d59467f854edc18a940b109cab4"
5579+
"hash": "5779931bdcabc12f26dbc4d46b041ffe"
55805580
},
55815581
{
55825582
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
@@ -5612,7 +5612,7 @@
56125612
},
56135613
{
56145614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5615-
"hash": "af3d3a3094434c46deb56bfd146053fc"
5615+
"hash": "051cd6393628919848d5bab73f4446bb"
56165616
},
56175617
{
56185618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -15116,27 +15116,27 @@
1511615116
},
1511715117
{
1511815118
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetOrgRulesets.php",
15119-
"hash": "f186bcef71e86804eca024d292b3f811"
15119+
"hash": "8a06356935685c3befad838f68cf6849"
1512015120
},
1512115121
{
1512215122
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesets.php",
15123-
"hash": "26eea37b783100bfda2c29351adc1cb6"
15123+
"hash": "c1b9491afbbfeb0c1780da092ed219dd"
1512415124
},
1512515125
{
1512615126
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsTest.php",
15127-
"hash": "0900e8f755084825ae335e59da5c1017"
15127+
"hash": "1fae6216bc3e0072feba73cf1a75431e"
1512815128
},
1512915129
{
1513015130
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetOrgRulesetsListing.php",
15131-
"hash": "67f8d50e1626a28e8db866bfdc095513"
15131+
"hash": "afb9dd110759316873c1e25291edfd0f"
1513215132
},
1513315133
{
1513415134
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesetsListing.php",
15135-
"hash": "f6664c53f15770ed2bbab743c4bafdb5"
15135+
"hash": "48dbf3810af9d5cfda666701a04716a4"
1513615136
},
1513715137
{
1513815138
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsListingTest.php",
15139-
"hash": "3e3696aafc3fe4dcf9243303476b31ce"
15139+
"hash": "4c4546290cd5fa5d6d41f9d6af966889"
1514015140
},
1514115141
{
1514215142
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CreateOrgRuleset.php",
@@ -21012,27 +21012,27 @@
2101221012
},
2101321013
{
2101421014
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetRepoRulesets.php",
21015-
"hash": "248c27baa5290c79dd31cf4e3b2879a9"
21015+
"hash": "b0791c7385174babd0fd9c9294c2ead3"
2101621016
},
2101721017
{
2101821018
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesets.php",
21019-
"hash": "3714305a7f4eb1977ac508836a2c734a"
21019+
"hash": "63f54855c1abc54938d3e76f0022b157"
2102021020
},
2102121021
{
2102221022
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsTest.php",
21023-
"hash": "e8a1b6d538839ad4447ee0aa5e423f96"
21023+
"hash": "6a1625f17e937caa40926301788c0161"
2102421024
},
2102521025
{
2102621026
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetRepoRulesetsListing.php",
21027-
"hash": "084e7d414e7f4cde5b5dd3bafe2fe1df"
21027+
"hash": "a18f754a9185a5a17c89dde8a620a89d"
2102821028
},
2102921029
{
2103021030
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetsListing.php",
21031-
"hash": "615441c1ad2844708d22ed1267360cf9"
21031+
"hash": "1c0658faa66ba7e8e843ccd03c453b03"
2103221032
},
2103321033
{
2103421034
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsListingTest.php",
21035-
"hash": "01ecefa538da9b0f5a71064fe9001a19"
21035+
"hash": "3a8838ca28a9c779716466668566efa8"
2103621036
},
2103721037
{
2103821038
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CreateRepoRuleset.php",
@@ -24460,7 +24460,7 @@
2446024460
},
2446124461
{
2446224462
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
24463-
"hash": "15b6c3b26b0222befe543a77d1d425dc"
24463+
"hash": "f6fc5c47a25e0c7aa3830069f5c6b15b"
2446424464
},
2446524465
{
2446624466
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -24736,7 +24736,7 @@
2473624736
},
2473724737
{
2473824738
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
24739-
"hash": "58feacbb3f5aceff6543f0db3e7d382f"
24739+
"hash": "8ac3762840b7518082ff0791571013ac"
2474024740
},
2474124741
{
2474224742
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -24948,11 +24948,11 @@
2494824948
},
2494924949
{
2495024950
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
24951-
"hash": "f248e13197b434832a0cbb6e3c9f1df4"
24951+
"hash": "47b25cd3d28cc3944541a5100a44428b"
2495224952
},
2495324953
{
2495424954
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
24955-
"hash": "0846a936eb0a3e31a24ddb21a9bf9124"
24955+
"hash": "75ae89c5b320acc265942e34810063d8"
2495624956
},
2495724957
{
2495824958
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
@@ -25052,11 +25052,11 @@
2505225052
},
2505325053
{
2505425054
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
25055-
"hash": "0bd1bbcad8e6f0a66a2ee13388a836ac"
25055+
"hash": "d884362f660768c44ec3cb877273ea4f"
2505625056
},
2505725057
{
2505825058
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
25059-
"hash": "847f3fb360c2b185cfe50d6fb2ad225b"
25059+
"hash": "089c23b82d3036be6791c77247892fa4"
2506025060
},
2506125061
{
2506225062
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
@@ -25356,7 +25356,7 @@
2535625356
},
2535725357
{
2535825358
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org.php",
25359-
"hash": "961e57d26030b87464ac3a800d853129"
25359+
"hash": "7669d3f60474dfb61465e812ecc0d630"
2536025360
},
2536125361
{
2536225362
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/Cache\/Usage.php",
@@ -27736,11 +27736,11 @@
2773627736
},
2773727737
{
2773827738
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27739-
"hash": "b279bfe420072ca3881b316b41cde25a"
27739+
"hash": "f5c81d72072dc36f546288473c6cef6a"
2774027740
},
2774127741
{
2774227742
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27743-
"hash": "a3cd037b10acacb7fbfa8165f0c08dac"
27743+
"hash": "09d3f81ea6b7302920dbb397f2c52bd5"
2774427744
},
2774527745
{
2774627746
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga
395395

396396
after_diskUsage:
397397

398-
$value = $payload['collaborators'] ?? null;
399-
400-
if ($value === null) {
401-
$properties['collaborators'] = null;
402-
goto after_collaborators;
403-
}
404-
405-
$properties['collaborators'] = $value;
406-
407-
after_collaborators:
408-
409398
$value = $payload['billing_email'] ?? null;
410399

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

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

1098-
$collaborators = $object->collaborators;
1099-
1100-
if ($collaborators === null) {
1101-
goto after_collaborators;
1102-
}
1103-
1104-
after_collaborators: $result['collaborators'] = $collaborators;
1105-
11061087
$billingEmail = $object->billingEmail;
11071088

11081089
if ($billingEmail === null) {

clients/GitHub/src/Internal/Operation/Repos/GetOrgRulesets.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,27 @@ final class GetOrgRulesets
2727
public const OPERATION_MATCH = 'GET /orgs/{org}/rulesets';
2828
/**The organization name. The name is not case sensitive. **/
2929
private string $org;
30+
/**A comma-separated list of rule targets to filter by.
31+
If provided, only rulesets that apply to the specified targets will be returned.
32+
For example, `branch,tag,push`.
33+
**/
34+
private string $targets;
3035
/**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)." **/
3136
private int $perPage;
3237
/**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)." **/
3338
private int $page;
3439

35-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Rulesets $hydrator, string $org, int $perPage = 30, int $page = 1)
40+
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)
3641
{
3742
$this->org = $org;
43+
$this->targets = $targets;
3844
$this->perPage = $perPage;
3945
$this->page = $page;
4046
}
4147

4248
public function createRequest(): RequestInterface
4349
{
44-
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}'));
50+
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}'));
4551
}
4652

4753
/** @return Observable<Schema\RepositoryRuleset> */

clients/GitHub/src/Internal/Operation/Repos/GetOrgRulesetsListing.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,27 @@ final class GetOrgRulesetsListing
2727
public const OPERATION_MATCH = 'LIST /orgs/{org}/rulesets';
2828
/**The organization name. The name is not case sensitive. **/
2929
private string $org;
30+
/**A comma-separated list of rule targets to filter by.
31+
If provided, only rulesets that apply to the specified targets will be returned.
32+
For example, `branch,tag,push`.
33+
**/
34+
private string $targets;
3035
/**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)." **/
3136
private int $perPage;
3237
/**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)." **/
3338
private int $page;
3439

35-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Rulesets $hydrator, string $org, int $perPage = 30, int $page = 1)
40+
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)
3641
{
3742
$this->org = $org;
43+
$this->targets = $targets;
3844
$this->perPage = $perPage;
3945
$this->page = $page;
4046
}
4147

4248
public function createRequest(): RequestInterface
4349
{
44-
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}'));
50+
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}'));
4551
}
4652

4753
/** @return Observable<Schema\RepositoryRuleset> */

clients/GitHub/src/Internal/Operation/Repos/GetRepoRulesets.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,31 @@ final class GetRepoRulesets
2929
private string $owner;
3030
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
3131
private string $repo;
32+
/**A comma-separated list of rule targets to filter by.
33+
If provided, only rulesets that apply to the specified targets will be returned.
34+
For example, `branch,tag,push`.
35+
**/
36+
private string $targets;
3237
/**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)." **/
3338
private int $perPage;
3439
/**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)." **/
3540
private int $page;
3641
/**Include rulesets configured at higher levels that apply to this repository **/
3742
private bool $includesParents;
3843

39-
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)
44+
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)
4045
{
4146
$this->owner = $owner;
4247
$this->repo = $repo;
48+
$this->targets = $targets;
4349
$this->perPage = $perPage;
4450
$this->page = $page;
4551
$this->includesParents = $includesParents;
4652
}
4753

4854
public function createRequest(): RequestInterface
4955
{
50-
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}'));
56+
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}'));
5157
}
5258

5359
/** @return Observable<Schema\RepositoryRuleset> */

0 commit comments

Comments
 (0)