Skip to content

Commit 3f247a2

Browse files
authored
Merge pull request #1315 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-a1c9c39b2a222079693be062d009b766-from-1.1.4-a1c9c39b2a222079693be062d009b766
2 parents b44ace9 + 64d0b91 commit 3f247a2

33 files changed

+194
-112
lines changed

clients/GitHubEnterpriseCloud/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15346,6 +15346,8 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts', [
1534615346
'tool_guid' => ,
1534715347
'ref' => 'generated',
1534815348
'pr' => 2,
15349+
'before' => 'generated',
15350+
'after' => 'generated',
1534915351
'state' => 'generated',
1535015352
'severity' => 'generated',
1535115353
'page' => 1,
@@ -15363,6 +15365,8 @@ $client->operations()->codeScanning()->listAlertsForRepo( owner: 'generat
1536315365
tool_guid: ,
1536415366
ref: 'generated',
1536515367
pr: 2,
15368+
before: 'generated',
15369+
after: 'generated',
1536615370
state: 'generated',
1536715371
severity: 'generated',
1536815372
page: 1,
@@ -15388,6 +15392,8 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts', [
1538815392
'tool_guid' => ,
1538915393
'ref' => 'generated',
1539015394
'pr' => 2,
15395+
'before' => 'generated',
15396+
'after' => 'generated',
1539115397
'state' => 'generated',
1539215398
'severity' => 'generated',
1539315399
'page' => 1,
@@ -15405,6 +15411,8 @@ $client->operations()->codeScanning()->listAlertsForRepoListing( owner: '
1540515411
tool_guid: ,
1540615412
ref: 'generated',
1540715413
pr: 2,
15414+
before: 'generated',
15415+
after: 'generated',
1540815416
state: 'generated',
1540915417
severity: 'generated',
1541015418
page: 1,

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

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "3d6ad7276957d3dd8952df409fac0650",
2+
"specHash": "a1c9c39b2a222079693be062d009b766",
33
"generatedFiles": {
44
"files": [
55
{
@@ -716,7 +716,7 @@
716716
},
717717
{
718718
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php",
719-
"hash": "28419c17cb31b085d47e62c44133e918"
719+
"hash": "9e413e0e854327f3517bde3aa29795c9"
720720
},
721721
{
722722
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php",
@@ -2936,7 +2936,7 @@
29362936
},
29372937
{
29382938
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Links.php",
2939-
"hash": "00a724e16efce43f4eeeba6f680185f7"
2939+
"hash": "9e438d3bf54c0fd04d246ebc72a8ee2e"
29402940
},
29412941
{
29422942
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Links\/Self_.php",
@@ -5908,7 +5908,7 @@
59085908
},
59095909
{
59105910
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
5911-
"hash": "8ab2e0da8b21cf7ad476944cdaf1cba0"
5911+
"hash": "5bd7f50139239b2fb729c1cda44b09f9"
59125912
},
59135913
{
59145914
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
@@ -5980,7 +5980,7 @@
59805980
},
59815981
{
59825982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5983-
"hash": "b0b431a98a12675610f1f1dc6949bbae"
5983+
"hash": "0ed92bd9217d9ede7070631e143e0027"
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -12096,7 +12096,7 @@
1209612096
},
1209712097
{
1209812098
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Links\/Html.php",
12099-
"hash": "c8cc481a1bd2e41504db3c7862233891"
12099+
"hash": "3484e73bc98cc0e4afa159dc05b30caf"
1210012100
},
1210112101
{
1210212102
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet4C203984\/Tiet86D11BF8\/Tiet9FC2225A\/Tiet026CAEC5.php",
@@ -12264,15 +12264,15 @@
1226412264
},
1226512265
{
1226612266
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php",
12267-
"hash": "d862c64ef9fef439dd2496e2c2eb8dc8"
12267+
"hash": "9323217f463b7a605664b234b3dc5d70"
1226812268
},
1226912269
{
1227012270
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php",
12271-
"hash": "b065631cec0693ca587416f7eff9f92d"
12271+
"hash": "3940872ee173c98cd361b3d323001218"
1227212272
},
1227312273
{
1227412274
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php",
12275-
"hash": "c5ba6c4820a19ce21fd3c075f8224d02"
12275+
"hash": "e006c6380f859843f8921a3898998091"
1227612276
},
1227712277
{
1227812278
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php",
@@ -16536,7 +16536,7 @@
1653616536
},
1653716537
{
1653816538
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesets.php",
16539-
"hash": "74a543706ece80469496b24e8f95af38"
16539+
"hash": "870b372768026aa5d2f973dc8bfbe439"
1654016540
},
1654116541
{
1654216542
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsTest.php",
@@ -16548,7 +16548,7 @@
1654816548
},
1654916549
{
1655016550
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesetsListing.php",
16551-
"hash": "d752495e4ef36119d5706f2bc95d1509"
16551+
"hash": "f592a2ce5299c6a50c7b4265a4aa74a9"
1655216552
},
1655316553
{
1655416554
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsListingTest.php",
@@ -19116,27 +19116,27 @@
1911619116
},
1911719117
{
1911819118
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepo.php",
19119-
"hash": "fb4d0aa194b31834145007e8a1bb0f62"
19119+
"hash": "1123760031c73e62c4c1c2bc5dcac573"
1912019120
},
1912119121
{
1912219122
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepo.php",
19123-
"hash": "b0816b9c4f69f8f42d37d0aa718c6581"
19123+
"hash": "6bc7097eeb524a80573bf1c1f1582a32"
1912419124
},
1912519125
{
1912619126
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoTest.php",
19127-
"hash": "6906381a4d67a1672c04f27e740e8558"
19127+
"hash": "1a95c0c20d1e647f60626e59cfbe472d"
1912819128
},
1912919129
{
1913019130
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListing.php",
19131-
"hash": "b7b492f4a4dd375ef76c7a19d2fd2a57"
19131+
"hash": "3e8aa13755d439f6deb6e1124161c227"
1913219132
},
1913319133
{
1913419134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepoListing.php",
19135-
"hash": "a39078a295c90d143cff7efcbe036f63"
19135+
"hash": "f5b4fe2eb7554ce0487cba41fe37c7ac"
1913619136
},
1913719137
{
1913819138
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListingTest.php",
19139-
"hash": "fbb5acc77865200cd2bf0acc0b8520a7"
19139+
"hash": "2dde9cefea2b7ee2d7b50b51e8921b7d"
1914019140
},
1914119141
{
1914219142
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/GetAlert.php",
@@ -22532,7 +22532,7 @@
2253222532
},
2253322533
{
2253422534
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesets.php",
22535-
"hash": "89f03bda37028294883ee5896d9a8355"
22535+
"hash": "44a41354659bff88696a840b7eb7e3fd"
2253622536
},
2253722537
{
2253822538
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsTest.php",
@@ -22544,7 +22544,7 @@
2254422544
},
2254522545
{
2254622546
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetsListing.php",
22547-
"hash": "46eec8393b15165c41395318082b1056"
22547+
"hash": "22671e08e58f4443b2fbbdd7c9e697ae"
2254822548
},
2254922549
{
2255022550
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsListingTest.php",
@@ -26088,7 +26088,7 @@
2608826088
},
2608926089
{
2609026090
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
26091-
"hash": "8640078db9651f7aa01b565d4c57671a"
26091+
"hash": "0ccb2c1616faec4ff2db943f15df615e"
2609226092
},
2609326093
{
2609426094
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -26140,7 +26140,7 @@
2614026140
},
2614126141
{
2614226142
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php",
26143-
"hash": "1a217cbad0dde4a52769c672ceeefb9e"
26143+
"hash": "70869d48b619e128fd45a730ce0dfd33"
2614426144
},
2614526145
{
2614626146
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php",
@@ -26400,7 +26400,7 @@
2640026400
},
2640126401
{
2640226402
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
26403-
"hash": "e0e5c7d34689989da7c3d7566916e5b4"
26403+
"hash": "cbd5354784413a34b58d3dcad984c30a"
2640426404
},
2640526405
{
2640626406
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -26420,7 +26420,7 @@
2642026420
},
2642126421
{
2642226422
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/CodeScanning.php",
26423-
"hash": "0343765d7e90ed953c494bcf4d492343"
26423+
"hash": "16e335c2ccb7dccbae9e6fda27a7e3e0"
2642426424
},
2642526425
{
2642626426
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php",
@@ -26636,15 +26636,15 @@
2663626636
},
2663726637
{
2663826638
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
26639-
"hash": "5bd0031a3b2f9afae4c837b0244f74dc"
26639+
"hash": "84baabab6ef8bb8c8b3c3f087fdfd342"
2664026640
},
2664126641
{
2664226642
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
26643-
"hash": "d2310762aafa9b401ca1fa40ea24d8bf"
26643+
"hash": "cb7d826c43fe180e6b9f6268536b74bc"
2664426644
},
2664526645
{
2664626646
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
26647-
"hash": "77cf4e9f2070d524bd40e99d7a32ad14"
26647+
"hash": "455074bbf433d0f28b1e73fca433014d"
2664826648
},
2664926649
{
2665026650
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -26736,19 +26736,19 @@
2673626736
},
2673726737
{
2673826738
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
26739-
"hash": "9dabdc8620df1aefb28d11c639a05a65"
26739+
"hash": "603ef2017db782aa7bb02ff55436588f"
2674026740
},
2674126741
{
2674226742
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
26743-
"hash": "fcd8e2a8f837d56c56a00a017d923e62"
26743+
"hash": "dc880ef38a537e30963c81bc90d8075f"
2674426744
},
2674526745
{
2674626746
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Two.php",
2674726747
"hash": "2f6d3fb5701f8bf188b882a049d6cfb3"
2674826748
},
2674926749
{
2675026750
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
26751-
"hash": "2cc43ed3de040350a0aad4f187e57e9e"
26751+
"hash": "ea2d03f977fbb5d3d72bfc2cca64f5f0"
2675226752
},
2675326753
{
2675426754
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
@@ -29820,11 +29820,11 @@
2982029820
},
2982129821
{
2982229822
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29823-
"hash": "1685ffac718c21aa115cb0b39c27c094"
29823+
"hash": "507cc7f9abaeddb5a7cc1def47a2a144"
2982429824
},
2982529825
{
2982629826
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29827-
"hash": "61a263e8f319b58062089a83140af8f7"
29827+
"hash": "0e5913aa4710ee8f84b4a059a76f6d92"
2982829828
},
2982929829
{
2983029830
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ final class ListAlertsForRepo
3838
private string $ref;
3939
/**The number of the pull request for the results you want to list. **/
4040
private int $pr;
41+
/**A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
42+
private string $before;
43+
/**A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
44+
private string $after;
4145
/**If specified, only code scanning alerts with this state will be returned. **/
4246
private string $state;
4347
/**If specified, only code scanning alerts with this severity will be returned. **/
@@ -51,14 +55,16 @@ final class ListAlertsForRepo
5155
/**The property by which to sort the results. **/
5256
private string $sort;
5357

54-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created')
58+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created')
5559
{
5660
$this->owner = $owner;
5761
$this->repo = $repo;
5862
$this->toolName = $toolName;
5963
$this->toolGuid = $toolGuid;
6064
$this->ref = $ref;
6165
$this->pr = $pr;
66+
$this->before = $before;
67+
$this->after = $after;
6268
$this->state = $state;
6369
$this->severity = $severity;
6470
$this->page = $page;
@@ -69,7 +75,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali
6975

7076
public function createRequest(): RequestInterface
7177
{
72-
return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}'));
78+
return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{before}', '{after}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->before, $this->after, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&before={before}&after={after}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}'));
7379
}
7480

7581
/** @return Observable<Schema\CodeScanningAlertItems>|WithoutBody */

0 commit comments

Comments
 (0)