Skip to content

Commit ff3243d

Browse files
authored
Merge pull request #1512 from php-api-clients/GitHub/from-1.1.4-9cd6c8e7bead01c0c83af26875ff027b-from-1.1.4-9cd6c8e7bead01c0c83af26875ff027b
2 parents 67bd209 + 4bee5af commit ff3243d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4123
-42
lines changed

clients/GitHub/README.md

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8756,6 +8756,82 @@ $client->operations()->repos()->deleteOrgRuleset( org: 'generated',
87568756
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/rules#delete-an-organization-repository-ruleset).
87578757

87588758

8759+
### orgs/get-org-ruleset-history
8760+
8761+
Get organization ruleset history
8762+
8763+
Using the `call` method:
8764+
```php
8765+
$client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history', [
8766+
'org' => 'generated',
8767+
'ruleset_id' => 10,
8768+
'per_page' => 8,
8769+
'page' => 1,
8770+
]);
8771+
```
8772+
8773+
Operations method:
8774+
```php
8775+
$client->operations()->orgs()->getOrgRulesetHistory( org: 'generated',
8776+
ruleset_id: 10,
8777+
per_page: 8,
8778+
page: 1,
8779+
);
8780+
```
8781+
8782+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/rules#get-organization-ruleset-history).
8783+
8784+
8785+
### orgs/get-org-ruleset-history
8786+
8787+
Get organization ruleset history
8788+
8789+
Using the `call` method:
8790+
```php
8791+
$client->call('LIST /orgs/{org}/rulesets/{ruleset_id}/history', [
8792+
'org' => 'generated',
8793+
'ruleset_id' => 10,
8794+
'per_page' => 8,
8795+
'page' => 1,
8796+
]);
8797+
```
8798+
8799+
Operations method:
8800+
```php
8801+
$client->operations()->orgs()->getOrgRulesetHistoryListing( org: 'generated',
8802+
ruleset_id: 10,
8803+
per_page: 8,
8804+
page: 1,
8805+
);
8806+
```
8807+
8808+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/rules#get-organization-ruleset-history).
8809+
8810+
8811+
### orgs/get-org-ruleset-version
8812+
8813+
Get organization ruleset version
8814+
8815+
Using the `call` method:
8816+
```php
8817+
$client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}', [
8818+
'org' => 'generated',
8819+
'ruleset_id' => 10,
8820+
'version_id' => 10,
8821+
]);
8822+
```
8823+
8824+
Operations method:
8825+
```php
8826+
$client->operations()->orgs()->getOrgRulesetVersion( org: 'generated',
8827+
ruleset_id: 10,
8828+
version_id: 10,
8829+
);
8830+
```
8831+
8832+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/rules#get-organization-ruleset-version).
8833+
8834+
87598835
### secret-scanning/list-alerts-for-org
87608836

87618837
List secret scanning alerts for an organization
@@ -22913,6 +22989,88 @@ $client->operations()->repos()->deleteRepoRuleset( owner: 'generated',
2291322989
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset).
2291422990

2291522991

22992+
### repos/get-repo-ruleset-history
22993+
22994+
Get repository ruleset history
22995+
22996+
Using the `call` method:
22997+
```php
22998+
$client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history', [
22999+
'owner' => 'generated',
23000+
'repo' => 'generated',
23001+
'ruleset_id' => 10,
23002+
'per_page' => 8,
23003+
'page' => 1,
23004+
]);
23005+
```
23006+
23007+
Operations method:
23008+
```php
23009+
$client->operations()->repos()->getRepoRulesetHistory( owner: 'generated',
23010+
repo: 'generated',
23011+
ruleset_id: 10,
23012+
per_page: 8,
23013+
page: 1,
23014+
);
23015+
```
23016+
23017+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/rules#get-repository-ruleset-history).
23018+
23019+
23020+
### repos/get-repo-ruleset-history
23021+
23022+
Get repository ruleset history
23023+
23024+
Using the `call` method:
23025+
```php
23026+
$client->call('LIST /repos/{owner}/{repo}/rulesets/{ruleset_id}/history', [
23027+
'owner' => 'generated',
23028+
'repo' => 'generated',
23029+
'ruleset_id' => 10,
23030+
'per_page' => 8,
23031+
'page' => 1,
23032+
]);
23033+
```
23034+
23035+
Operations method:
23036+
```php
23037+
$client->operations()->repos()->getRepoRulesetHistoryListing( owner: 'generated',
23038+
repo: 'generated',
23039+
ruleset_id: 10,
23040+
per_page: 8,
23041+
page: 1,
23042+
);
23043+
```
23044+
23045+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/rules#get-repository-ruleset-history).
23046+
23047+
23048+
### repos/get-repo-ruleset-version
23049+
23050+
Get repository ruleset version
23051+
23052+
Using the `call` method:
23053+
```php
23054+
$client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}', [
23055+
'owner' => 'generated',
23056+
'repo' => 'generated',
23057+
'ruleset_id' => 10,
23058+
'version_id' => 10,
23059+
]);
23060+
```
23061+
23062+
Operations method:
23063+
```php
23064+
$client->operations()->repos()->getRepoRulesetVersion( owner: 'generated',
23065+
repo: 'generated',
23066+
ruleset_id: 10,
23067+
version_id: 10,
23068+
);
23069+
```
23070+
23071+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/rules#get-repository-ruleset-version).
23072+
23073+
2291623074
### secret-scanning/list-alerts-for-repo
2291723075

2291823076
List secret scanning alerts for a repository

0 commit comments

Comments
 (0)