Skip to content

Commit b105b29

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

File tree

22 files changed

+121
-100
lines changed

22 files changed

+121
-100
lines changed

clients/GitHubEnterprise-3.14/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23482,6 +23482,7 @@ Using the `call` method:
2348223482
$client->call('GET /search/issues', [
2348323483
'q' => 'generated',
2348423484
'sort' => 'generated',
23485+
'advanced_search' => 'generated',
2348523486
'order' => 'generated',
2348623487
'per_page' => 8,
2348723488
'page' => 1,
@@ -23492,6 +23493,7 @@ Operations method:
2349223493
```php
2349323494
$client->operations()->search()->issuesAndPullRequests( q: 'generated',
2349423495
sort: 'generated',
23496+
advanced_search: 'generated',
2349523497
order: 'generated',
2349623498
per_page: 8,
2349723499
page: 1,

clients/GitHubEnterprise-3.14/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": "0db954ca7aa760e1c9ee3a6575105048",
2+
"specHash": "1716058b6fa04c91e7ec9ca76a7996d2",
33
"generatedFiles": {
44
"files": [
55
{
@@ -7760,11 +7760,11 @@
77607760
},
77617761
{
77627762
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/DependencyGraph\/DiffRange.php",
7763-
"hash": "d50c1f44324af87bb22d31ace542bb70"
7763+
"hash": "347b0ead9e19a2f8957e4bfa079f4dfb"
77647764
},
77657765
{
77667766
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/DependencyGraph\/DiffRange.php",
7767-
"hash": "075b6038151ce73c38ee1b662312e485"
7767+
"hash": "9bf7067713932c3221d92f2191b26a14"
77687768
},
77697769
{
77707770
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/DependencyGraph\/DiffRangeTest.php",
@@ -11076,15 +11076,15 @@
1107611076
},
1107711077
{
1107811078
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Search\/IssuesAndPullRequests.php",
11079-
"hash": "7efc1d410e524f06c7df52c037426a50"
11079+
"hash": "b7ce2d006c269f6640a4d5dc1d37dff5"
1108011080
},
1108111081
{
1108211082
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Search\/IssuesAndPullRequests.php",
11083-
"hash": "5ff8601f42dfc6c2fcebe6ff0a8bdf32"
11083+
"hash": "7e529f8c1df4812ca8b2791054142b14"
1108411084
},
1108511085
{
1108611086
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Search\/IssuesAndPullRequestsTest.php",
11087-
"hash": "838dfcdbda0db4e8f1f8fdb2ea494207"
11087+
"hash": "921079bf356772290fa3078f78000ffd"
1108811088
},
1108911089
{
1109011090
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Search\/Labels.php",
@@ -13296,11 +13296,11 @@
1329613296
},
1329713297
{
1329813298
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Meta\/GetZen.php",
13299-
"hash": "c7b9967d12f2ffe88bfe55261441fc6b"
13299+
"hash": "42e66180c21ac50cdae566f6ea6ab794"
1330013300
},
1330113301
{
1330213302
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Meta\/GetZen.php",
13303-
"hash": "d9d04364b4b5d6c1dd1936d1c8c4e727"
13303+
"hash": "6e8ac5284c1f5b9ab767845a753174bb"
1330413304
},
1330513305
{
1330613306
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Meta\/GetZenTest.php",
@@ -24594,10 +24594,6 @@
2459424594
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/RemoveStatusCheckContexts\/Response\/ApplicationJson\/Ok.php",
2459524595
"hash": "281c0d6c5c45750679ee8c124ce8f652"
2459624596
},
24597-
{
24598-
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Meta\/GetZen\/Response\/ApplicationJson\/Ok.php",
24599-
"hash": "aa13406f9a90361b6de5c0ac5080ae24"
24600-
},
2460124597
{
2460224598
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/EnterpriseAdmin\/CreateGlobalWebhook\/Request\/ApplicationJson.php",
2460324599
"hash": "2ba5b3bbfa02ae29bcb82f918df1b2ae"
@@ -26696,7 +26692,7 @@
2669626692
},
2669726693
{
2669826694
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Meta.php",
26699-
"hash": "4bfec77db1fdd948564bf8bbf8b4eb90"
26695+
"hash": "79885a9c2e3f9d127ab68bfef21f8105"
2670026696
},
2670126697
{
2670226698
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
@@ -26740,7 +26736,7 @@
2674026736
},
2674126737
{
2674226738
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Search.php",
26743-
"hash": "3b4d9cf7d3811a23ea5be7009c9efb8f"
26739+
"hash": "f68c75df4413a658e2644892d2437a91"
2674426740
},
2674526741
{
2674626742
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Teams.php",
@@ -26800,7 +26796,7 @@
2680026796
},
2680126797
{
2680226798
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/DependencyGraph.php",
26803-
"hash": "e7d96c4a23ed8784eb3e47de15dffff3"
26799+
"hash": "d8a9edd547aaed7e01f557f0e4d77687"
2680426800
},
2680526801
{
2680626802
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
@@ -27224,7 +27220,7 @@
2722427220
},
2722527221
{
2722627222
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Three.php",
27227-
"hash": "1c3402598477978c2f259e7d66016c4b"
27223+
"hash": "dd3e03cc2bc5917a695d1bbf0dc65ec1"
2722827224
},
2722927225
{
2723027226
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
@@ -27236,15 +27232,15 @@
2723627232
},
2723727233
{
2723827234
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
27239-
"hash": "d1905900da5b62fabb0b324a38bb7279"
27235+
"hash": "488418233581df4e8dc3dbce8f58b2db"
2724027236
},
2724127237
{
2724227238
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
2724327239
"hash": "b07c3129c02039907ccb3a8d3d76e9cc"
2724427240
},
2724527241
{
2724627242
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
27247-
"hash": "6342d64a0234d600d44967c08c421b75"
27243+
"hash": "54f2eaa834e5094fb1fe0e311778f0db"
2724827244
},
2724927245
{
2725027246
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -27444,11 +27440,11 @@
2744427440
},
2744527441
{
2744627442
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27447-
"hash": "eb9acf050e7c53fe1a316472b8cdc81d"
27443+
"hash": "debf7455f39c014547f7a32fb618377b"
2744827444
},
2744927445
{
2745027446
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27451-
"hash": "e5864aba0dd4de9cada7ede4eeee69c5"
27447+
"hash": "89b8157fa383aa797b86b839ff61450d"
2745227448
},
2745327449
{
2745427450
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27460,7 +27456,7 @@
2746027456
},
2746127457
{
2746227458
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Meta.php",
27463-
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
27459+
"hash": "36de6758976b0a2ceb21d6074889a987"
2746427460
},
2746527461
{
2746627462
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
@@ -27576,7 +27572,7 @@
2757627572
},
2757727573
{
2757827574
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
27579-
"hash": "a638452f9411a0fc738141835c32327d"
27575+
"hash": "1a842b54f0e563f4c8b82d145032d428"
2758027576
},
2758127577
{
2758227578
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Git.php",
@@ -27588,7 +27584,7 @@
2758827584
},
2758927585
{
2759027586
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Search.php",
27591-
"hash": "f575d503a83922ab6cd69e189613b87d"
27587+
"hash": "b3d46ba9c8468fc11c3405b1cf6997d6"
2759227588
},
2759327589
{
2759427590
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Users.php",
@@ -30281,6 +30277,10 @@
3028130277
{
3028230278
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsReviewer.php",
3028330279
"hash": "9fb5f3613d9deee11da6ff5294c91b66"
30280+
},
30281+
{
30282+
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Meta\/GetZen\/Response\/TextPlain\/Ok.php",
30283+
"hash": "d0ca0c14c2d902d47122181008e84185"
3028430284
}
3028530285
]
3028630286
},

clients/GitHubEnterprise-3.14/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.14/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.14/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.14/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.14/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.14/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.14/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.14/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)