Skip to content

[GitHubEnterprise-3.13] Update to 1.1.4-8985016ac4b27cc23057fb31dee10264 from 1.1.4-446a3cd1fdbd8dda94d848b89bd8f6e2 #1480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions clients/GitHubEnterprise-3.13/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15622,14 +15622,8 @@ $client->call('GET /repos/{owner}/{repo}/dependabot/alerts', [
'package' => 'generated',
'manifest' => 'generated',
'scope' => 'generated',
'before' => 'generated',
'after' => 'generated',
'last' => 4,
'sort' => 'generated',
'direction' => 'generated',
'page' => 1,
'per_page' => 8,
'first' => 5,
]);
```

Expand All @@ -15643,64 +15637,8 @@ $client->operations()->dependabot()->listAlertsForRepo( owner: 'generated
package: 'generated',
manifest: 'generated',
scope: 'generated',
before: 'generated',
after: 'generated',
last: 4,
sort: 'generated',
direction: 'generated',
page: 1,
per_page: 8,
first: 5,
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/[email protected]/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository).


### dependabot/list-alerts-for-repo

List Dependabot alerts for a repository

Using the `call` method:
```php
$client->call('LIST /repos/{owner}/{repo}/dependabot/alerts', [
'owner' => 'generated',
'repo' => 'generated',
'state' => 'generated',
'severity' => 'generated',
'ecosystem' => 'generated',
'package' => 'generated',
'manifest' => 'generated',
'scope' => 'generated',
'before' => 'generated',
'after' => 'generated',
'last' => 4,
'sort' => 'generated',
'direction' => 'generated',
'page' => 1,
'per_page' => 8,
'first' => 5,
]);
```

Operations method:
```php
$client->operations()->dependabot()->listAlertsForRepoListing( owner: 'generated',
repo: 'generated',
state: 'generated',
severity: 'generated',
ecosystem: 'generated',
package: 'generated',
manifest: 'generated',
scope: 'generated',
before: 'generated',
after: 'generated',
last: 4,
sort: 'generated',
direction: 'generated',
page: 1,
per_page: 8,
first: 5,
);
```

Expand Down
50 changes: 17 additions & 33 deletions clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "446a3cd1fdbd8dda94d848b89bd8f6e2",
"specHash": "8985016ac4b27cc23057fb31dee10264",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -1592,11 +1592,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterprise.php",
"hash": "2de3effb482080214a6d7ff3eeac0ab1"
"hash": "4ba8183f95b8c6643d8eb1d453c6348d"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php",
"hash": "1f68b2e0be822f1fe631c2ecbf33af29"
"hash": "f4d6f6268171e5bdac4c36bd524d933e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php",
Expand Down Expand Up @@ -3260,11 +3260,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrg.php",
"hash": "da393861d1742ff760808cebd5899d7c"
"hash": "1f0c1a2a5a3c2ec3e34cc6656e25ff92"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php",
"hash": "eea752ff872e32ab676814f4711443ce"
"hash": "e19123d6c0aeecf27c8c9359cfa37d73"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php",
Expand Down Expand Up @@ -7504,27 +7504,15 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepo.php",
"hash": "fa6d1539a600ead93d4a30a6ac794d34"
"hash": "e2a31798660ee93f5f79a31018642707"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php",
"hash": "8e6d6c30b30952cbf0c0a1812a9a20af"
"hash": "e422d820f3a178650a8a21a39af7414f"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php",
"hash": "28a8f67065b11264db95c4e0a47f27dd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListing.php",
"hash": "f6766a3eb85a4d529ded9d58f6f99787"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php",
"hash": "ef770952171600f29eb947006685fe61"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php",
"hash": "03792a745ea0ae57a30c9e3f47679d23"
"hash": "32489b65c195edd0db74efe7a45fcce6"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/GetAlert.php",
Expand Down Expand Up @@ -26516,7 +26504,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php",
"hash": "ca26062c508849ffeaf3e6115bd56cfd"
"hash": "111042e8c75e48fe50f41cf5f1bf5f32"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
Expand Down Expand Up @@ -26622,10 +26610,6 @@
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php",
"hash": "9dcbc6375bebce019b66df58dadb40e6"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php",
"hash": "a37ef0f86dd26e1735a1af6e096218d8"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php",
"hash": "ac214dcaa2451d757ace609e4b7a793a"
Expand Down Expand Up @@ -26964,15 +26948,15 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "fb8d914498dc8ddad6eaa4249ed98e34"
"hash": "0fad69374da0792d6207a7cc43f16ccb"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
"hash": "d1905900da5b62fabb0b324a38bb7279"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
"hash": "944582af066e6fc6c831c4e7b872a838"
"hash": "6c162baaded82b4c6734e822b560ac43"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
Expand Down Expand Up @@ -27008,7 +26992,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
"hash": "79161555a3f660bbecc50e90624d8d81"
"hash": "72b914055311790d0e492e242e7d304e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
Expand Down Expand Up @@ -27172,15 +27156,15 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Routers.php",
"hash": "fc876efb882b7740aed6d6a4452fd80d"
"hash": "e00ad38cc31869ef80a854e48dc8e9ee"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "39e16973e5fbac0a6d07c23b1696e407"
"hash": "b5ddf5ed50643698add8a2c384528e11"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "183651a423a8ed3f5bc2b06d21115acd"
"hash": "dbaa0cc35ad0b17f0e6f5565b7c7a283"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down Expand Up @@ -27232,7 +27216,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
"hash": "d15ffa2ad0b303fb3a966cc261bb7493"
"hash": "08bd8e160023bd2237dee15bd8567253"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Billing.php",
Expand Down Expand Up @@ -27328,7 +27312,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operators.php",
"hash": "99cd99186e1bb47a2ece05d4292d02ce"
"hash": "d8b8faf8f4e158031ed0ed0680da278f"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operations.php",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ final class ListAlertsForEnterprise
private int $last;
/**The property by which to sort the results.
`created` means when the alert was created.
`updated` means when the alert's state last changed.
`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/
`updated` means when the alert's state last changed. **/
private string $sort;
/**The direction to sort the results by. **/
private string $direction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ final class ListAlertsForOrg
private int $last;
/**The property by which to sort the results.
`created` means when the alert was created.
`updated` means when the alert's state last changed.
`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/
`updated` means when the alert's state last changed. **/
private string $sort;
/**The direction to sort the results by. **/
private string $direction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,14 @@ final class ListAlertsForRepo
private string $manifest;
/**The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. **/
private string $scope;
/**A cursor, as given in the [Link header](https://docs.github.com/[email protected]/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/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private string $before;
/**A cursor, as given in the [Link header](https://docs.github.com/[email protected]/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/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
private string $after;
/****Deprecated**. The number of results per page (max 100), starting from the last matching result.
This parameter must not be used in combination with `first`.
Instead, use `per_page` in combination with `before` to fetch the last page of results. **/
private int $last;
/**The property by which to sort the results.
`created` means when the alert was created.
`updated` means when the alert's state last changed.
`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/
`updated` means when the alert's state last changed. **/
private string $sort;
/**The direction to sort the results by. **/
private string $direction;
/****Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. **/
private int $page;
/**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)." **/
private int $perPage;
/****Deprecated**. The number of results per page (max 100), starting from the first matching result.
This parameter must not be used in combination with `last`.
Instead, use `per_page` in combination with `after` to fetch the first page of results. **/
private int $first;

public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Dependabot\Alerts $hydrator, string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30)

public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Dependabot\Alerts $hydrator, string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $sort = 'created', string $direction = 'desc')
{
$this->owner = $owner;
$this->repo = $repo;
Expand All @@ -82,19 +65,13 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali
$this->package = $package;
$this->manifest = $manifest;
$this->scope = $scope;
$this->before = $before;
$this->after = $after;
$this->last = $last;
$this->sort = $sort;
$this->direction = $direction;
$this->page = $page;
$this->perPage = $perPage;
$this->first = $first;
}

public function createRequest(): RequestInterface
{
return new Request('GET', str_replace(['{owner}', '{repo}', '{state}', '{severity}', '{ecosystem}', '{package}', '{manifest}', '{scope}', '{before}', '{after}', '{last}', '{sort}', '{direction}', '{page}', '{per_page}', '{first}'], [$this->owner, $this->repo, $this->state, $this->severity, $this->ecosystem, $this->package, $this->manifest, $this->scope, $this->before, $this->after, $this->last, $this->sort, $this->direction, $this->page, $this->perPage, $this->first], '/repos/{owner}/{repo}/dependabot/alerts' . '?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&manifest={manifest}&scope={scope}&before={before}&after={after}&last={last}&sort={sort}&direction={direction}&page={page}&per_page={per_page}&first={first}'));
return new Request('GET', str_replace(['{owner}', '{repo}', '{state}', '{severity}', '{ecosystem}', '{package}', '{manifest}', '{scope}', '{sort}', '{direction}'], [$this->owner, $this->repo, $this->state, $this->severity, $this->ecosystem, $this->package, $this->manifest, $this->scope, $this->sort, $this->direction], '/repos/{owner}/{repo}/dependabot/alerts' . '?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&manifest={manifest}&scope={scope}&sort={sort}&direction={direction}'));
}

/** @return Observable<Schema\DependabotAlert>|WithoutBody */
Expand Down
Loading
Loading