Skip to content

Commit 27b4454

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

File tree

22 files changed

+121
-100
lines changed

22 files changed

+121
-100
lines changed

clients/GitHubEnterprise-3.15/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -23754,6 +23754,7 @@ Using the `call` method:
2375423754
$client->call('GET /search/issues', [
2375523755
'q' => 'generated',
2375623756
'sort' => 'generated',
23757+
'advanced_search' => 'generated',
2375723758
'order' => 'generated',
2375823759
'per_page' => 8,
2375923760
'page' => 1,
@@ -23764,6 +23765,7 @@ Operations method:
2376423765
```php
2376523766
$client->operations()->search()->issuesAndPullRequests( q: 'generated',
2376623767
sort: 'generated',
23768+
advanced_search: 'generated',
2376723769
order: 'generated',
2376823770
per_page: 8,
2376923771
page: 1,

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

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "9c88bf9f401b8678777d4212dacc4985",
2+
"specHash": "a52c4c09b475fc1c0194c7e656ee966d",
33
"generatedFiles": {
44
"files": [
55
{
@@ -7892,11 +7892,11 @@
78927892
},
78937893
{
78947894
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/DependencyGraph\/DiffRange.php",
7895-
"hash": "d50c1f44324af87bb22d31ace542bb70"
7895+
"hash": "347b0ead9e19a2f8957e4bfa079f4dfb"
78967896
},
78977897
{
78987898
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/DependencyGraph\/DiffRange.php",
7899-
"hash": "075b6038151ce73c38ee1b662312e485"
7899+
"hash": "9bf7067713932c3221d92f2191b26a14"
79007900
},
79017901
{
79027902
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/DependencyGraph\/DiffRangeTest.php",
@@ -11220,15 +11220,15 @@
1122011220
},
1122111221
{
1122211222
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Search\/IssuesAndPullRequests.php",
11223-
"hash": "01cc05d13926897234c136e9e7b7ea8a"
11223+
"hash": "3179826be152c7afec38cd9384e69fb0"
1122411224
},
1122511225
{
1122611226
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Search\/IssuesAndPullRequests.php",
11227-
"hash": "5ff8601f42dfc6c2fcebe6ff0a8bdf32"
11227+
"hash": "7e529f8c1df4812ca8b2791054142b14"
1122811228
},
1122911229
{
1123011230
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Search\/IssuesAndPullRequestsTest.php",
11231-
"hash": "838dfcdbda0db4e8f1f8fdb2ea494207"
11231+
"hash": "921079bf356772290fa3078f78000ffd"
1123211232
},
1123311233
{
1123411234
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Search\/Labels.php",
@@ -13324,11 +13324,11 @@
1332413324
},
1332513325
{
1332613326
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Meta\/GetZen.php",
13327-
"hash": "c7b9967d12f2ffe88bfe55261441fc6b"
13327+
"hash": "42e66180c21ac50cdae566f6ea6ab794"
1332813328
},
1332913329
{
1333013330
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Meta\/GetZen.php",
13331-
"hash": "d9d04364b4b5d6c1dd1936d1c8c4e727"
13331+
"hash": "6e8ac5284c1f5b9ab767845a753174bb"
1333213332
},
1333313333
{
1333413334
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Meta\/GetZenTest.php",
@@ -24550,10 +24550,6 @@
2455024550
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/RemoveStatusCheckContexts\/Response\/ApplicationJson\/Ok.php",
2455124551
"hash": "281c0d6c5c45750679ee8c124ce8f652"
2455224552
},
24553-
{
24554-
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Meta\/GetZen\/Response\/ApplicationJson\/Ok.php",
24555-
"hash": "aa13406f9a90361b6de5c0ac5080ae24"
24556-
},
2455724553
{
2455824554
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/EnterpriseAdmin\/CreateGlobalWebhook\/Request\/ApplicationJson.php",
2455924555
"hash": "f48505a40a280cb353bbdba8977f0cc7"
@@ -26656,7 +26652,7 @@
2665626652
},
2665726653
{
2665826654
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Meta.php",
26659-
"hash": "4bfec77db1fdd948564bf8bbf8b4eb90"
26655+
"hash": "79885a9c2e3f9d127ab68bfef21f8105"
2666026656
},
2666126657
{
2666226658
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
@@ -26700,7 +26696,7 @@
2670026696
},
2670126697
{
2670226698
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Search.php",
26703-
"hash": "3b4d9cf7d3811a23ea5be7009c9efb8f"
26699+
"hash": "f68c75df4413a658e2644892d2437a91"
2670426700
},
2670526701
{
2670626702
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Teams.php",
@@ -26764,7 +26760,7 @@
2676426760
},
2676526761
{
2676626762
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/DependencyGraph.php",
26767-
"hash": "e7d96c4a23ed8784eb3e47de15dffff3"
26763+
"hash": "d8a9edd547aaed7e01f557f0e4d77687"
2676826764
},
2676926765
{
2677026766
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
@@ -27204,7 +27200,7 @@
2720427200
},
2720527201
{
2720627202
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Three.php",
27207-
"hash": "1c3402598477978c2f259e7d66016c4b"
27203+
"hash": "dd3e03cc2bc5917a695d1bbf0dc65ec1"
2720827204
},
2720927205
{
2721027206
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
@@ -27216,15 +27212,15 @@
2721627212
},
2721727213
{
2721827214
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
27219-
"hash": "d1905900da5b62fabb0b324a38bb7279"
27215+
"hash": "488418233581df4e8dc3dbce8f58b2db"
2722027216
},
2722127217
{
2722227218
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
2722327219
"hash": "f44dd133d5a777f374149df2b549e928"
2722427220
},
2722527221
{
2722627222
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
27227-
"hash": "a7d01ee040f75b9e0b3a294fd442f0e6"
27223+
"hash": "d1150fbd014d36156e93d57968197bcc"
2722827224
},
2722927225
{
2723027226
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -27424,11 +27420,11 @@
2742427420
},
2742527421
{
2742627422
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27427-
"hash": "057a0e66c0fac8be025f4333a6d16a9b"
27423+
"hash": "3ded2a6fde523cb12555f37cb931bf20"
2742827424
},
2742927425
{
2743027426
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27431-
"hash": "0afba759e55aef88b3e3a19ce1993b10"
27427+
"hash": "0818c1281e383d8c8d1fa7f3e312e368"
2743227428
},
2743327429
{
2743427430
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27440,7 +27436,7 @@
2744027436
},
2744127437
{
2744227438
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Meta.php",
27443-
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
27439+
"hash": "36de6758976b0a2ceb21d6074889a987"
2744427440
},
2744527441
{
2744627442
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
@@ -27560,7 +27556,7 @@
2756027556
},
2756127557
{
2756227558
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
27563-
"hash": "a638452f9411a0fc738141835c32327d"
27559+
"hash": "1a842b54f0e563f4c8b82d145032d428"
2756427560
},
2756527561
{
2756627562
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Git.php",
@@ -27572,7 +27568,7 @@
2757227568
},
2757327569
{
2757427570
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Search.php",
27575-
"hash": "f575d503a83922ab6cd69e189613b87d"
27571+
"hash": "b3d46ba9c8468fc11c3405b1cf6997d6"
2757627572
},
2757727573
{
2757827574
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Users.php",
@@ -30289,6 +30285,10 @@
3028930285
{
3029030286
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsReviewer.php",
3029130287
"hash": "9fb5f3613d9deee11da6ff5294c91b66"
30288+
},
30289+
{
30290+
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Meta\/GetZen\/Response\/TextPlain\/Ok.php",
30291+
"hash": "d0ca0c14c2d902d47122181008e84185"
3029230292
}
3029330293
]
3029430294
},

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

+1-1
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.15/src/Internal/Operation/Meta/GetZen.php

+2-3
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.15/src/Internal/Operation/Search/IssuesAndPullRequests.php

+11-7
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.15/src/Internal/Operator/DependencyGraph/DiffRange.php

+1-1
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.15/src/Internal/Operator/Meta/GetZen.php

-1
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.15/src/Internal/Operator/Search/IssuesAndPullRequests.php

+2-3
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.15/src/Internal/Router/Get/DependencyGraph.php

+1-1
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.15/src/Internal/Router/Get/Meta.php

-1
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());

clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Search.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public function commits(array $params): \ApiClients\Client\GitHubEnterprise\Sche
9898
return $operator->call($arguments['q'], $arguments['sort'], $arguments['order'], $arguments['per_page'], $arguments['page']);
9999
}
100100

101-
/** @return */
102101
public function issuesAndPullRequests(array $params): \ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|WithoutBody
103102
{
104103
$arguments = [];
@@ -114,6 +113,12 @@ public function issuesAndPullRequests(array $params): \ApiClients\Client\GitHubE
114113

115114
$arguments['sort'] = $params['sort'];
116115
unset($params['sort']);
116+
if (array_key_exists('advanced_search', $params) === false) {
117+
throw new InvalidArgumentException('Missing mandatory field: advanced_search');
118+
}
119+
120+
$arguments['advanced_search'] = $params['advanced_search'];
121+
unset($params['advanced_search']);
117122
if (array_key_exists('order', $params) === false) {
118123
throw new InvalidArgumentException('Missing mandatory field: order');
119124
}
@@ -134,7 +139,7 @@ public function issuesAndPullRequests(array $params): \ApiClients\Client\GitHubE
134139
unset($params['page']);
135140
$operator = new Internal\Operator\Search\IssuesAndPullRequests($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Search🌀Issues());
136141

137-
return $operator->call($arguments['q'], $arguments['sort'], $arguments['order'], $arguments['per_page'], $arguments['page']);
142+
return $operator->call($arguments['q'], $arguments['sort'], $arguments['advanced_search'], $arguments['order'], $arguments['per_page'], $arguments['page']);
138143
}
139144

140145
/** @return */

0 commit comments

Comments
 (0)