Skip to content

Commit 1f8b9b1

Browse files
authoredJun 20, 2022
feat: add new before and after parameters to GET /orgs/{org}/secret-scanning/alerts and GET /repos/{owner}/{repo}/secret-scanning/alerts
1 parent 6867fec commit 1f8b9b1

File tree

5 files changed

+88
-16
lines changed

5 files changed

+88
-16
lines changed
 

‎docs/secretScanning/listAlertsForOrg.md

+10
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ Page number of the results to fetch.
7272

7373
The number of results per page (max 100).
7474

75+
</td></tr>
76+
<tr><td>before</td><td>no</td><td>
77+
78+
A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.
79+
80+
</td></tr>
81+
<tr><td>after</td><td>no</td><td>
82+
83+
A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.
84+
7585
</td></tr>
7686
</tbody>
7787
</table>

‎docs/secretScanning/listAlertsForRepo.md

+10
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ Page number of the results to fetch.
7878

7979
The number of results per page (max 100).
8080

81+
</td></tr>
82+
<tr><td>before</td><td>no</td><td>
83+
84+
A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.
85+
86+
</td></tr>
87+
<tr><td>after</td><td>no</td><td>
88+
89+
A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.
90+
8191
</td></tr>
8292
</tbody>
8393
</table>

‎package-lock.json

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "Gregor Martynus (https://twitter.com/gr2m)",
2525
"license": "MIT",
2626
"dependencies": {
27-
"@octokit/types": "^6.35.0",
27+
"@octokit/types": "^6.36.0",
2828
"deprecation": "^2.3.1"
2929
},
3030
"devDependencies": {

‎scripts/update-endpoints/generated/endpoints.json

+52
Original file line numberDiff line numberDiff line change
@@ -56698,6 +56698,32 @@
5669856698
"validation": null,
5669956699
"alias": null,
5670056700
"deprecated": null
56701+
},
56702+
{
56703+
"name": "before",
56704+
"description": "A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.",
56705+
"in": "QUERY",
56706+
"type": "string",
56707+
"required": false,
56708+
"enum": null,
56709+
"allowNull": false,
56710+
"mapToData": null,
56711+
"validation": null,
56712+
"alias": null,
56713+
"deprecated": null
56714+
},
56715+
{
56716+
"name": "after",
56717+
"description": "A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.",
56718+
"in": "QUERY",
56719+
"type": "string",
56720+
"required": false,
56721+
"enum": null,
56722+
"allowNull": false,
56723+
"mapToData": null,
56724+
"validation": null,
56725+
"alias": null,
56726+
"deprecated": null
5670156727
}
5670256728
],
5670356729
"responses": [
@@ -56845,6 +56871,32 @@
5684556871
"validation": null,
5684656872
"alias": null,
5684756873
"deprecated": null
56874+
},
56875+
{
56876+
"name": "before",
56877+
"description": "A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.",
56878+
"in": "QUERY",
56879+
"type": "string",
56880+
"required": false,
56881+
"enum": null,
56882+
"allowNull": false,
56883+
"mapToData": null,
56884+
"validation": null,
56885+
"alias": null,
56886+
"deprecated": null
56887+
},
56888+
{
56889+
"name": "after",
56890+
"description": "A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.",
56891+
"in": "QUERY",
56892+
"type": "string",
56893+
"required": false,
56894+
"enum": null,
56895+
"allowNull": false,
56896+
"mapToData": null,
56897+
"validation": null,
56898+
"alias": null,
56899+
"deprecated": null
5684856900
}
5684956901
],
5685056902
"responses": [

0 commit comments

Comments
 (0)
Please sign in to comment.