Skip to content

Commit

Permalink
fix: octokit.rest.packages.listPackagesForUser uses correct route (…
Browse files Browse the repository at this point in the history
…`GET /user/{username}/packages` -> `GET /users/{username}/packages`) (#454)
  • Loading branch information
octokitbot committed Sep 22, 2021
1 parent 2e41527 commit f94bb13
Show file tree
Hide file tree
Showing 11 changed files with 245 additions and 117 deletions.
51 changes: 0 additions & 51 deletions docs/actions/reRunWorkflow.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/packages/listPackagesForUser.md
@@ -1,7 +1,7 @@
---
name: List packages for a user
example: octokit.rest.packages.listPackagesForUser({ package_type, username })
route: GET /user/{username}/packages
route: GET /users/{username}/packages
scope: packages
type: API method
---
Expand Down
2 changes: 1 addition & 1 deletion docs/repos/addCollaborator.md
Expand Up @@ -55,7 +55,7 @@ The permission to grant the collaborator. **Only valid on organization-owned rep
\* `push` - can pull and push, but not administer this repository.
\* `admin` - can pull, push and administer this repository.
\* `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
\* `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
\* `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. \* custom repository role name - Can assign a custom repository role if the owning organization has defined any.

</td></tr>
<tr><td>permissions</td><td>no</td><td>
Expand Down
40 changes: 40 additions & 0 deletions docs/repos/disableLfsForRepo.md
@@ -0,0 +1,40 @@
---
name: Disable Git LFS for a repository
example: octokit.rest.repos.disableLfsForRepo({ owner, repo })
route: DELETE /repos/{owner}/{repo}/lfs
scope: repos
type: API method
---

# Disable Git LFS for a repository

**Note:** The Git LFS API endpoints are currently in beta and are subject to change.

```js
octokit.rest.repos.disableLfsForRepo({
owner,
repo,
});
```

## Parameters

<table>
<thead>
<tr>
<th>name</th>
<th>required</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr><td>owner</td><td>yes</td><td>

</td></tr>
<tr><td>repo</td><td>yes</td><td>

</td></tr>
</tbody>
</table>

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/repos#disable-git-lfs-for-a-repository).
40 changes: 40 additions & 0 deletions docs/repos/enableLfsForRepo.md
@@ -0,0 +1,40 @@
---
name: Enable Git LFS for a repository
example: octokit.rest.repos.enableLfsForRepo({ owner, repo })
route: PUT /repos/{owner}/{repo}/lfs
scope: repos
type: API method
---

# Enable Git LFS for a repository

**Note:** The Git LFS API endpoints are currently in beta and are subject to change.

```js
octokit.rest.repos.enableLfsForRepo({
owner,
repo,
});
```

## Parameters

<table>
<thead>
<tr>
<th>name</th>
<th>required</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr><td>owner</td><td>yes</td><td>

</td></tr>
<tr><td>repo</td><td>yes</td><td>

</td></tr>
</tbody>
</table>

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/repos#enable-git-lfs-for-a-repository).
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.29.0",
"@octokit/types": "^6.30.0",
"deprecation": "^2.3.1"
},
"devDependencies": {
Expand Down

0 comments on commit f94bb13

Please sign in to comment.