Skip to content

Commit 56bab3e

Browse files
authored
feat: new octokit.rest.apps.permissions.organization_custom_properties(), octokit.rest.codespaces.deleteFromOrganization(), octokit.rest.codespaces.getCodespacesForUserInOrg(), octokit.rest.codespaces.listInOrganization(), octokit.rest.codespaces.stopInOrganization() auth, octokit.rest.orgs.listCustomPropertiesValuesForRepos(), octokit.rest.repos.createInOrg() description, octokit.rest.secretScanning.listAlertsForEnterprise.validity, octokit.rest.secretScanning.listAlertsForOrg.validity, octokit.rest.secretScanning.listAlertsForRepo.validity parameter (#697)
1 parent 7355fcf commit 56bab3e

20 files changed

+194
-40
lines changed

docs/apps/createInstallationAccessToken.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ The level of permission to grant the access token to manage access to an organiz
163163

164164
The level of permission to grant the access token for custom repository roles management. This property is in beta and is subject to change.
165165

166+
</td></tr>
167+
<tr><td>permissions.organization_custom_properties</td><td>no</td><td>
168+
169+
The level of permission to grant the access token for custom property management.
170+
166171
</td></tr>
167172
<tr><td>permissions.organization_announcement_banners</td><td>no</td><td>
168173

docs/apps/scopeToken.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ The level of permission to grant the access token to manage access to an organiz
177177

178178
The level of permission to grant the access token for custom repository roles management. This property is in beta and is subject to change.
179179

180+
</td></tr>
181+
<tr><td>permissions.organization_custom_properties</td><td>no</td><td>
182+
183+
The level of permission to grant the access token for custom property management.
184+
180185
</td></tr>
181186
<tr><td>permissions.organization_announcement_banners</td><td>no</td><td>
182187

docs/codespaces/deleteFromOrganization.md

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

1111
Deletes a user's codespace.
1212

13-
You must authenticate using an access token with the `admin:org` scope to use this endpoint.
13+
To use this endpoint you must authenticate using one of the following methods:
14+
15+
- An access token with the `admin:org` scope
16+
- An access token with write permissions for `Codespaces` on the specific repository and write permissions for `Organization codespaces`
1417

1518
```js
1619
octokit.rest.codespaces.deleteFromOrganization({

docs/codespaces/getCodespacesForUserInOrg.md

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

1111
Lists the codespaces that a member of an organization has for repositories in that organization.
1212

13-
You must authenticate using an access token with the `admin:org` scope to use this endpoint.
13+
You must authenticate using an access token with the `admin:org` scope or the `Organization codespaces` read permission to use this endpoint.
1414

1515
```js
1616
octokit.rest.codespaces.getCodespacesForUserInOrg({

docs/codespaces/listInOrganization.md

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

1111
Lists the codespaces associated to a specified organization.
1212

13-
You must authenticate using an access token with the `admin:org` scope to use this endpoint.
13+
You must authenticate using an access token with the `admin:org` scope or the `Organization codespaces` read permission to use this endpoint.
1414

1515
```js
1616
octokit.rest.codespaces.listInOrganization({

docs/codespaces/stopInOrganization.md

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

1111
Stops a user's codespace.
1212

13-
You must authenticate using an access token with the `admin:org` scope to use this endpoint.
13+
To use this endpoint you must authenticate using one of the following methods:
14+
15+
- An access token with the `admin:org` scope
16+
- An access token with write permissions for `Codespaces lifecycle admin` on the specific repository and write permissions for `Organization codespaces`
1417

1518
```js
1619
octokit.rest.codespaces.stopInOrganization({

docs/orgs/createOrUpdateCustomProperties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ Ordered list of allowed values of the property
7474
</tbody>
7575
</table>
7676

77-
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/properties#create-or-update-custom-properties-for-an-organization).
77+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization).

docs/orgs/createOrUpdateCustomPropertiesValuesForRepos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ The value assigned to the property
6666
</tbody>
6767
</table>
6868

69-
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/properties#create-or-update-custom-property-values-for-organization-repositories).
69+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories).

docs/orgs/createOrUpdateCustomProperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ Ordered list of allowed values of the property
6868
</tbody>
6969
</table>
7070

71-
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/properties#create-or-update-a-custom-property-for-an-organization).
71+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization).

docs/orgs/getAllCustomProperties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ The organization name. The name is not case sensitive.
3636
</tbody>
3737
</table>
3838

39-
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/properties#get-all-custom-properties-for-an-organization).
39+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization).

0 commit comments

Comments
 (0)