Navigation Menu

Skip to content

Commit

Permalink
feat: add new before and after parameters to `GET /orgs/{org}/sec…
Browse files Browse the repository at this point in the history
…ret-scanning/alerts` and `GET /repos/{owner}/{repo}/secret-scanning/alerts`
  • Loading branch information
octokitbot committed Jun 20, 2022
1 parent 6867fec commit 1f8b9b1
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 16 deletions.
10 changes: 10 additions & 0 deletions docs/secretScanning/listAlertsForOrg.md
Expand Up @@ -72,6 +72,16 @@ Page number of the results to fetch.

The number of results per page (max 100).

</td></tr>
<tr><td>before</td><td>no</td><td>

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.

</td></tr>
<tr><td>after</td><td>no</td><td>

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.

</td></tr>
</tbody>
</table>
Expand Down
10 changes: 10 additions & 0 deletions docs/secretScanning/listAlertsForRepo.md
Expand Up @@ -78,6 +78,16 @@ Page number of the results to fetch.

The number of results per page (max 100).

</td></tr>
<tr><td>before</td><td>no</td><td>

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.

</td></tr>
<tr><td>after</td><td>no</td><td>

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.

</td></tr>
</tbody>
</table>
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/types": "^6.35.0",
"@octokit/types": "^6.36.0",
"deprecation": "^2.3.1"
},
"devDependencies": {
Expand Down
52 changes: 52 additions & 0 deletions scripts/update-endpoints/generated/endpoints.json
Expand Up @@ -56698,6 +56698,32 @@
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "before",
"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.",
"in": "QUERY",
"type": "string",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "after",
"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.",
"in": "QUERY",
"type": "string",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
}
],
"responses": [
Expand Down Expand Up @@ -56845,6 +56871,32 @@
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "before",
"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.",
"in": "QUERY",
"type": "string",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "after",
"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.",
"in": "QUERY",
"type": "string",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
}
],
"responses": [
Expand Down

0 comments on commit 1f8b9b1

Please sign in to comment.