Skip to content

Commit f94bb13

Browse files
authored
fix: octokit.rest.packages.listPackagesForUser uses correct route (GET /user/{username}/packages -> GET /users/{username}/packages) (#454)
1 parent 2e41527 commit f94bb13

File tree

11 files changed

+245
-117
lines changed

11 files changed

+245
-117
lines changed

docs/actions/reRunWorkflow.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/packages/listPackagesForUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: List packages for a user
33
example: octokit.rest.packages.listPackagesForUser({ package_type, username })
4-
route: GET /user/{username}/packages
4+
route: GET /users/{username}/packages
55
scope: packages
66
type: API method
77
---

docs/repos/addCollaborator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The permission to grant the collaborator. **Only valid on organization-owned rep
5555
\* `push` - can pull and push, but not administer this repository.
5656
\* `admin` - can pull, push and administer this repository.
5757
\* `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
58-
\* `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
58+
\* `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.
5959

6060
</td></tr>
6161
<tr><td>permissions</td><td>no</td><td>

docs/repos/disableLfsForRepo.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Disable Git LFS for a repository
3+
example: octokit.rest.repos.disableLfsForRepo({ owner, repo })
4+
route: DELETE /repos/{owner}/{repo}/lfs
5+
scope: repos
6+
type: API method
7+
---
8+
9+
# Disable Git LFS for a repository
10+
11+
**Note:** The Git LFS API endpoints are currently in beta and are subject to change.
12+
13+
```js
14+
octokit.rest.repos.disableLfsForRepo({
15+
owner,
16+
repo,
17+
});
18+
```
19+
20+
## Parameters
21+
22+
<table>
23+
<thead>
24+
<tr>
25+
<th>name</th>
26+
<th>required</th>
27+
<th>description</th>
28+
</tr>
29+
</thead>
30+
<tbody>
31+
<tr><td>owner</td><td>yes</td><td>
32+
33+
</td></tr>
34+
<tr><td>repo</td><td>yes</td><td>
35+
36+
</td></tr>
37+
</tbody>
38+
</table>
39+
40+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/repos#disable-git-lfs-for-a-repository).

docs/repos/enableLfsForRepo.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Enable Git LFS for a repository
3+
example: octokit.rest.repos.enableLfsForRepo({ owner, repo })
4+
route: PUT /repos/{owner}/{repo}/lfs
5+
scope: repos
6+
type: API method
7+
---
8+
9+
# Enable Git LFS for a repository
10+
11+
**Note:** The Git LFS API endpoints are currently in beta and are subject to change.
12+
13+
```js
14+
octokit.rest.repos.enableLfsForRepo({
15+
owner,
16+
repo,
17+
});
18+
```
19+
20+
## Parameters
21+
22+
<table>
23+
<thead>
24+
<tr>
25+
<th>name</th>
26+
<th>required</th>
27+
<th>description</th>
28+
</tr>
29+
</thead>
30+
<tbody>
31+
<tr><td>owner</td><td>yes</td><td>
32+
33+
</td></tr>
34+
<tr><td>repo</td><td>yes</td><td>
35+
36+
</td></tr>
37+
</tbody>
38+
</table>
39+
40+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/repos#enable-git-lfs-for-a-repository).

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "Gregor Martynus (https://twitter.com/gr2m)",
2525
"license": "MIT",
2626
"dependencies": {
27-
"@octokit/types": "^6.29.0",
27+
"@octokit/types": "^6.30.0",
2828
"deprecation": "^2.3.1"
2929
},
3030
"devDependencies": {

0 commit comments

Comments
 (0)