Skip to content

Commit 08b921d

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterprise-3.13] Update to 1.1.4-65c7d90809c912f318fd98e5a759353c from 1.1.4-c3eeb28f55a8ddf476a0103d39889bfa
Detected Schema changes: ``` ├─┬Paths │ ├─┬/zen │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ ├──[➕] content (47367:15) │ │ └──[➖] content (47368:15)❌ │ ├─┬/search/issues │ │ └─┬GET │ │ └──[➖] parameters (216042:13)❌ │ └─┬/repos/{owner}/{repo}/dependency-graph/compare/{basehead} │ └─┬GET │ └─┬Responses │ └─┬403 │ └──[🔀] description (216330:20) └─┬Components └──[➖] parameters (216042:7)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 4 | 2 | | components | 1 | 1 | Date: 03/01/25 | Commit: Original: etc/specs/GitHubEnterprise-3.13/current.spec.yaml, Modified: etc/specs/GitHubEnterprise-3.13/previous.spec.yaml, - ❌ **BREAKING Changes**: _3_ out of _5_ - **Modifications**: _1_ - **Removals**: _3_ - **Additions**: _1_ - **Breaking Removals**: _3_ ERROR: breaking changes discovered
1 parent af4bbd2 commit 08b921d

File tree

22 files changed

+121
-100
lines changed

22 files changed

+121
-100
lines changed

clients/GitHubEnterprise-3.13/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23112,6 +23112,7 @@ Using the `call` method:
2311223112
$client->call('GET /search/issues', [
2311323113
'q' => 'generated',
2311423114
'sort' => 'generated',
23115+
'advanced_search' => 'generated',
2311523116
'order' => 'generated',
2311623117
'per_page' => 8,
2311723118
'page' => 1,
@@ -23122,6 +23123,7 @@ Operations method:
2312223123
```php
2312323124
$client->operations()->search()->issuesAndPullRequests( q: 'generated',
2312423125
sort: 'generated',
23126+
advanced_search: 'generated',
2312523127
order: 'generated',
2312623128
per_page: 8,
2312723129
page: 1,

clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "c3eeb28f55a8ddf476a0103d39889bfa",
2+
"specHash": "65c7d90809c912f318fd98e5a759353c",
33
"generatedFiles": {
44
"files": [
55
{
@@ -7596,11 +7596,11 @@
75967596
},
75977597
{
75987598
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/DependencyGraph\/DiffRange.php",
7599-
"hash": "d50c1f44324af87bb22d31ace542bb70"
7599+
"hash": "347b0ead9e19a2f8957e4bfa079f4dfb"
76007600
},
76017601
{
76027602
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/DependencyGraph\/DiffRange.php",
7603-
"hash": "075b6038151ce73c38ee1b662312e485"
7603+
"hash": "9bf7067713932c3221d92f2191b26a14"
76047604
},
76057605
{
76067606
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/DependencyGraph\/DiffRangeTest.php",
@@ -10912,15 +10912,15 @@
1091210912
},
1091310913
{
1091410914
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Search\/IssuesAndPullRequests.php",
10915-
"hash": "8e4109819ce368907eff8eabd6341fe9"
10915+
"hash": "9b350aeb02ce7387ccde262fa14421ff"
1091610916
},
1091710917
{
1091810918
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Search\/IssuesAndPullRequests.php",
10919-
"hash": "5ff8601f42dfc6c2fcebe6ff0a8bdf32"
10919+
"hash": "7e529f8c1df4812ca8b2791054142b14"
1092010920
},
1092110921
{
1092210922
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Search\/IssuesAndPullRequestsTest.php",
10923-
"hash": "838dfcdbda0db4e8f1f8fdb2ea494207"
10923+
"hash": "921079bf356772290fa3078f78000ffd"
1092410924
},
1092510925
{
1092610926
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Search\/Labels.php",
@@ -13132,11 +13132,11 @@
1313213132
},
1313313133
{
1313413134
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Meta\/GetZen.php",
13135-
"hash": "c7b9967d12f2ffe88bfe55261441fc6b"
13135+
"hash": "42e66180c21ac50cdae566f6ea6ab794"
1313613136
},
1313713137
{
1313813138
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Meta\/GetZen.php",
13139-
"hash": "d9d04364b4b5d6c1dd1936d1c8c4e727"
13139+
"hash": "6e8ac5284c1f5b9ab767845a753174bb"
1314013140
},
1314113141
{
1314213142
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Meta\/GetZenTest.php",
@@ -24302,10 +24302,6 @@
2430224302
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/RemoveStatusCheckContexts\/Response\/ApplicationJson\/Ok.php",
2430324303
"hash": "281c0d6c5c45750679ee8c124ce8f652"
2430424304
},
24305-
{
24306-
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Meta\/GetZen\/Response\/ApplicationJson\/Ok.php",
24307-
"hash": "aa13406f9a90361b6de5c0ac5080ae24"
24308-
},
2430924305
{
2431024306
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/EnterpriseAdmin\/CreateGlobalWebhook\/Request\/ApplicationJson.php",
2431124307
"hash": "8af47db0edd99481c699b7bb40d6e9c1"
@@ -26400,7 +26396,7 @@
2640026396
},
2640126397
{
2640226398
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Meta.php",
26403-
"hash": "4bfec77db1fdd948564bf8bbf8b4eb90"
26399+
"hash": "79885a9c2e3f9d127ab68bfef21f8105"
2640426400
},
2640526401
{
2640626402
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
@@ -26444,7 +26440,7 @@
2644426440
},
2644526441
{
2644626442
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Search.php",
26447-
"hash": "3b4d9cf7d3811a23ea5be7009c9efb8f"
26443+
"hash": "f68c75df4413a658e2644892d2437a91"
2644826444
},
2644926445
{
2645026446
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Teams.php",
@@ -26504,7 +26500,7 @@
2650426500
},
2650526501
{
2650626502
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/DependencyGraph.php",
26507-
"hash": "e7d96c4a23ed8784eb3e47de15dffff3"
26503+
"hash": "d8a9edd547aaed7e01f557f0e4d77687"
2650826504
},
2650926505
{
2651026506
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
@@ -26928,7 +26924,7 @@
2692826924
},
2692926925
{
2693026926
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Three.php",
26931-
"hash": "1c3402598477978c2f259e7d66016c4b"
26927+
"hash": "dd3e03cc2bc5917a695d1bbf0dc65ec1"
2693226928
},
2693326929
{
2693426930
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
@@ -26940,15 +26936,15 @@
2694026936
},
2694126937
{
2694226938
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
26943-
"hash": "d1905900da5b62fabb0b324a38bb7279"
26939+
"hash": "488418233581df4e8dc3dbce8f58b2db"
2694426940
},
2694526941
{
2694626942
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
2694726943
"hash": "944582af066e6fc6c831c4e7b872a838"
2694826944
},
2694926945
{
2695026946
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
26951-
"hash": "7a1cd736b439ecd5b76ca92383196bd7"
26947+
"hash": "8db59ced98108bd223596f21e396627c"
2695226948
},
2695326949
{
2695426950
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -27148,11 +27144,11 @@
2714827144
},
2714927145
{
2715027146
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27151-
"hash": "2fb5474325448bccbcb22bb7d1158ea1"
27147+
"hash": "5ffe1714380665bca421b5cbd1f206d4"
2715227148
},
2715327149
{
2715427150
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27155-
"hash": "54beea339c8099994a522e19c9c55b8c"
27151+
"hash": "07b227f12fa2ae0cd157847ee21cd2a3"
2715627152
},
2715727153
{
2715827154
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27164,7 +27160,7 @@
2716427160
},
2716527161
{
2716627162
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Meta.php",
27167-
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
27163+
"hash": "36de6758976b0a2ceb21d6074889a987"
2716827164
},
2716927165
{
2717027166
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
@@ -27280,7 +27276,7 @@
2728027276
},
2728127277
{
2728227278
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
27283-
"hash": "a638452f9411a0fc738141835c32327d"
27279+
"hash": "1a842b54f0e563f4c8b82d145032d428"
2728427280
},
2728527281
{
2728627282
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Git.php",
@@ -27292,7 +27288,7 @@
2729227288
},
2729327289
{
2729427290
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Search.php",
27295-
"hash": "f575d503a83922ab6cd69e189613b87d"
27291+
"hash": "b3d46ba9c8468fc11c3405b1cf6997d6"
2729627292
},
2729727293
{
2729827294
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Users.php",
@@ -29965,6 +29961,10 @@
2996529961
{
2996629962
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsReviewer.php",
2996729963
"hash": "9fb5f3613d9deee11da6ff5294c91b66"
29964+
},
29965+
{
29966+
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Meta\/GetZen\/Response\/TextPlain\/Ok.php",
29967+
"hash": "d0ca0c14c2d902d47122181008e84185"
2996829968
}
2996929969
]
2997029970
},

clients/GitHubEnterprise-3.13/src/Internal/Operation/DependencyGraph/DiffRange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function createResponse(ResponseInterface $response): Observable
8282

8383
throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body));
8484
/**
85-
* Response if GitHub Advanced Security is not enabled for this repository
85+
* Response for a private repository when GitHub Advanced Security is not enabled, or if used against a fork
8686
**/
8787

8888
case 403:

clients/GitHubEnterprise-3.13/src/Internal/Operation/Meta/GetZen.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use RuntimeException;
1313

1414
use function explode;
15-
use function json_decode;
1615
use function str_replace;
1716

1817
final class GetZen
@@ -34,8 +33,8 @@ public function createResponse(ResponseInterface $response): string
3433
$code = $response->getStatusCode();
3534
[$contentType] = explode(';', $response->getHeaderLine('Content-Type'));
3635
switch ($contentType) {
37-
case 'application/json':
38-
$body = json_decode($response->getBody()->getContents(), true);
36+
case 'text/plain':
37+
$body = $response->getBody()->getContents();
3938
switch ($code) {
4039
case 200:
4140
return $body;

clients/GitHubEnterprise-3.13/src/Internal/Operation/Search/IssuesAndPullRequests.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,29 @@ final class IssuesAndPullRequests
2727
private string $q;
2828
/**Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/[email protected]/rest/search/search#ranking-search-results) **/
2929
private string $sort;
30+
/**Set to `true` to use advanced search.
31+
Example: `http://api.github.com/search/issues?q={query}&advanced_search=true` **/
32+
private string $advancedSearch;
3033
/**Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. **/
3134
private string $order;
3235
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
3336
private int $perPage;
3437
/**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
3538
private int $page;
3639

37-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Search\Issues $hydrator, string $q, string $sort, string $order = 'desc', int $perPage = 30, int $page = 1)
40+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Search\Issues $hydrator, string $q, string $sort, string $advancedSearch, string $order = 'desc', int $perPage = 30, int $page = 1)
3841
{
39-
$this->q = $q;
40-
$this->sort = $sort;
41-
$this->order = $order;
42-
$this->perPage = $perPage;
43-
$this->page = $page;
42+
$this->q = $q;
43+
$this->sort = $sort;
44+
$this->advancedSearch = $advancedSearch;
45+
$this->order = $order;
46+
$this->perPage = $perPage;
47+
$this->page = $page;
4448
}
4549

4650
public function createRequest(): RequestInterface
4751
{
48-
return new Request('GET', str_replace(['{q}', '{sort}', '{order}', '{per_page}', '{page}'], [$this->q, $this->sort, $this->order, $this->perPage, $this->page], '/search/issues' . '?q={q}&sort={sort}&order={order}&per_page={per_page}&page={page}'));
52+
return new Request('GET', str_replace(['{q}', '{sort}', '{advanced_search}', '{order}', '{per_page}', '{page}'], [$this->q, $this->sort, $this->advancedSearch, $this->order, $this->perPage, $this->page], '/search/issues' . '?q={q}&sort={sort}&advanced_search={advanced_search}&order={order}&per_page={per_page}&page={page}'));
4953
}
5054

5155
public function createResponse(ResponseInterface $response): Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|WithoutBody

clients/GitHubEnterprise-3.13/src/Internal/Operator/DependencyGraph/DiffRange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return Observable<Schema\DependencyGraphDiff> */
27+
/** @return iterable<int,Schema\DependencyGraphDiff> */
2828
public function call(string $owner, string $repo, string $basehead, string $name): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\DependencyGraph\DiffRange($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $basehead, $name);

clients/GitHubEnterprise-3.13/src/Internal/Operator/Meta/GetZen.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public function __construct(private Browser $browser, private AuthenticationInte
2323
{
2424
}
2525

26-
/** @return */
2726
public function call(): string
2827
{
2928
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Meta\GetZen($this->responseSchemaValidator, $this->hydrator);

clients/GitHubEnterprise-3.13/src/Internal/Operator/Search/IssuesAndPullRequests.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28-
/** @return */
29-
public function call(string $q, string $sort, string $order = 'desc', int $perPage = 30, int $page = 1): Ok|WithoutBody
28+
public function call(string $q, string $sort, string $advancedSearch, string $order = 'desc', int $perPage = 30, int $page = 1): Ok|WithoutBody
3029
{
31-
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Search\IssuesAndPullRequests($this->responseSchemaValidator, $this->hydrator, $q, $sort, $order, $perPage, $page);
30+
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Search\IssuesAndPullRequests($this->responseSchemaValidator, $this->hydrator, $q, $sort, $advancedSearch, $order, $perPage, $page);
3231
$request = $operation->createRequest();
3332
$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): Ok|WithoutBody {
3433
return $operation->createResponse($response);

clients/GitHubEnterprise-3.13/src/Internal/Router/Get/DependencyGraph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function exportSbom(array $params): DependencyGraphSpdxSbom
4141
return $operator->call($arguments['owner'], $arguments['repo']);
4242
}
4343

44-
/** @return Observable<Schema\DependencyGraphDiff> */
44+
/** @return iterable<int,Schema\DependencyGraphDiff> */
4545
public function diffRange(array $params): iterable
4646
{
4747
$arguments = [];

clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Meta.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public function getOctocat(array $params): ResponseInterface
5353
return $operator->call($arguments['s']);
5454
}
5555

56-
/** @return */
5756
public function getZen(array $params): string
5857
{
5958
$operator = new Internal\Operator\Meta\GetZen($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Zen());

0 commit comments

Comments
 (0)