Navigation Menu

Skip to content

Commit

Permalink
fix: update operation docs to reflect current API
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Jul 2, 2022
1 parent adf942a commit c6d49a5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 54 deletions.
45 changes: 0 additions & 45 deletions docs/actions/setActionsOidcCustomIssuerPolicyForEnterprise.md

This file was deleted.

15 changes: 10 additions & 5 deletions docs/codespaces/listInOrganization.md
@@ -1,7 +1,7 @@
---
name: List codespaces for the organization
example: octokit.rest.codespaces.listInOrganization({ org_id })
route: GET /orgs/{org_id}/codespaces
example: octokit.rest.codespaces.listInOrganization({ org })
route: GET /orgs/{org}/codespaces
scope: codespaces
type: API method
---
Expand All @@ -14,7 +14,7 @@ You must authenticate using an access token with the `admin:org` scope to use th

```js
octokit.rest.codespaces.listInOrganization({
org_id,
org,
});
```

Expand All @@ -39,9 +39,14 @@ The number of results per page (max 100).
Page number of the results to fetch.

</td></tr>
<tr><td>org_id</td><td>yes</td><td>
<tr><td>org</td><td>yes</td><td>

The unique identifier of the organization.
The organization name. The name is not case sensitive.

</td></tr>
<tr><td>org_id</td><td>no</td><td>

The organization name. The name is not case sensitive.

</td></tr>
</tbody>
Expand Down
5 changes: 3 additions & 2 deletions docs/issues/removeAssignees.md
@@ -1,6 +1,6 @@
---
name: Remove assignees from an issue
example: octokit.rest.issues.removeAssignees({ owner, repo, issue_number })
example: octokit.rest.issues.removeAssignees({ owner, repo, issue_number, assignees })
route: DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees
scope: issues
type: API method
Expand All @@ -15,6 +15,7 @@ octokit.rest.issues.removeAssignees({
owner,
repo,
issue_number,
assignees,
});
```

Expand Down Expand Up @@ -44,7 +45,7 @@ The name of the repository. The name is not case sensitive.
The number that identifies the issue.

</td></tr>
<tr><td>assignees</td><td>no</td><td>
<tr><td>assignees</td><td>yes</td><td>

Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._

Expand Down
4 changes: 2 additions & 2 deletions docs/repos/createAutolink.md
Expand Up @@ -42,12 +42,12 @@ The name of the repository. The name is not case sensitive.
</td></tr>
<tr><td>key_prefix</td><td>yes</td><td>

The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
The prefix appended by alphanumeric characters will generate a link any time it is found in an issue, pull request, or commit.

</td></tr>
<tr><td>url_template</td><td>yes</td><td>

The URL must contain <num> for the reference number.
The URL must contain `<num>` for the reference number. `<num>` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`.

</td></tr>
</tbody>
Expand Down

0 comments on commit c6d49a5

Please sign in to comment.