Skip to content

Commit 2b971b4

Browse files
authored
feat: Updates @octokit/types 13.1.0, updates docs (#727)
* WIP octokit/openapi updated * WIP octokit/openapi updated
1 parent 1138da0 commit 2b971b4

18 files changed

+89
-166
lines changed

docs/actions/listWorkflowRunsForRepo.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Anyone with read access to the repository can use this endpoint.
1414

1515
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
1616

17-
This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`.
18-
1917
```js
2018
octokit.rest.actions.listWorkflowRunsForRepo({
2119
owner,

docs/orgs/createWebhook.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ type: API method
88

99
# Create an organization webhook
1010

11-
Create a hook that posts payloads in JSON format.
12-
13-
You must be an organization owner to use this endpoint.
14-
15-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or
16-
edit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
11+
Here's how you can create a hook that posts payloads in JSON format:
1712

1813
```js
1914
octokit.rest.orgs.createWebhook({

docs/orgs/deleteWebhook.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ type: API method
88

99
# Delete an organization webhook
1010

11-
You must be an organization owner to use this endpoint.
12-
13-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
14-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
15-
1611
```js
1712
octokit.rest.orgs.deleteWebhook({
1813
org,

docs/orgs/get.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ When the value of `two_factor_requirement_enabled` is `true`, the organization r
1414

1515
To see the full details about an organization, the authenticated user must be an organization owner.
1616

17+
The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
18+
19+
- advanced_security_enabled_for_new_repositories
20+
- dependabot_alerts_enabled_for_new_repositories
21+
- dependabot_security_updates_enabled_for_new_repositories
22+
- dependency_graph_enabled_for_new_repositories
23+
- secret_scanning_enabled_for_new_repositories
24+
- secret_scanning_push_protection_enabled_for_new_repositories
25+
26+
For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
27+
1728
OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
1829

1930
To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.

docs/orgs/getWebhook.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ type: API method
88

99
# Get an organization webhook
1010

11-
Returns a webhook configured in an organization. To get only the webhook
12-
`config` properties, see "[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization).
13-
14-
You must be an organization owner to use this endpoint.
15-
16-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
17-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
11+
Returns a webhook configured in an organization. To get only the webhook `config` properties, see "[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization)."
1812

1913
```js
2014
octokit.rest.orgs.getWebhook({

docs/orgs/getWebhookConfigForOrg.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ type: API method
1010

1111
Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook)."
1212

13-
You must be an organization owner to use this endpoint.
14-
15-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
16-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
13+
OAuth app tokens and personal access tokens (classic) need the `admin:org_hook` scope to use this endpoint.
1714

1815
```js
1916
octokit.rest.orgs.getWebhookConfigForOrg({

docs/orgs/getWebhookDelivery.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ type: API method
1010

1111
Returns a delivery for a webhook configured in an organization.
1212

13-
You must be an organization owner to use this endpoint.
14-
15-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
16-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
17-
1813
```js
1914
octokit.rest.orgs.getWebhookDelivery({
2015
org,

docs/orgs/listWebhookDeliveries.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ type: API method
1010

1111
Returns a list of webhook deliveries for a webhook configured in an organization.
1212

13-
You must be an organization owner to use this endpoint.
14-
15-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
16-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
17-
1813
```js
1914
octokit.rest.orgs.listWebhookDeliveries({
2015
org,

docs/orgs/listWebhooks.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ type: API method
88

99
# List organization webhooks
1010

11-
You must be an organization owner to use this endpoint.
12-
13-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
14-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
15-
1611
```js
1712
octokit.rest.orgs.listWebhooks({
1813
org,

docs/orgs/pingWebhook.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ type: API method
88

99
# Ping an organization webhook
1010

11-
This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event)
12-
to be sent to the hook.
13-
14-
You must be an organization owner to use this endpoint.
15-
16-
OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
17-
webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
11+
This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook.
1812

1913
```js
2014
octokit.rest.orgs.pingWebhook({

0 commit comments

Comments
 (0)