Skip to content

Commit 04b0e27

Browse files
octokitbotgr2m
andauthored
fix: send request to correct path for .migrations.listReposForUser() (#171)
Co-authored-by: Gregor Martynus <[email protected]>
1 parent 3245026 commit 04b0e27

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/migrations/listReposForUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: List repositories for a user migration
33
example: octokit.migrations.listReposForUser({ migration_id })
4-
route: GET /user/{migration_id}/repositories
4+
route: GET /user/migrations/{migration_id}/repositories
55
scope: migrations
66
type: API method
77
---

package-lock.json

Lines changed: 3 additions & 3 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": "^5.1.0",
27+
"@octokit/types": "^5.1.1",
2828
"deprecation": "^2.3.1"
2929
},
3030
"devDependencies": {

scripts/update-endpoints/generated/endpoints.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16324,7 +16324,7 @@
1632416324
"scope": "migrations",
1632516325
"id": "listReposForUser",
1632616326
"method": "GET",
16327-
"url": "/user/{migration_id}/repositories",
16327+
"url": "/user/migrations/{migration_id}/repositories",
1632816328
"isDeprecated": false,
1632916329
"deprecationDate": null,
1633016330
"description": "Lists all the repositories for this user migration.",

src/generated/endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
499499
{ mediaType: { previews: ["wyandotte"] } },
500500
],
501501
listReposForUser: [
502-
"GET /user/{migration_id}/repositories",
502+
"GET /user/migrations/{migration_id}/repositories",
503503
{ mediaType: { previews: ["wyandotte"] } },
504504
],
505505
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],

src/generated/parameters-and-response-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,10 +1885,10 @@ export type RestEndpointMethodTypes = {
18851885
listReposForUser: {
18861886
parameters: RequestParameters &
18871887
Omit<
1888-
Endpoints["GET /user/:migration_id/repositories"]["parameters"],
1888+
Endpoints["GET /user/migrations/:migration_id/repositories"]["parameters"],
18891889
"baseUrl" | "headers" | "mediaType"
18901890
>;
1891-
response: Endpoints["GET /user/:migration_id/repositories"]["response"];
1891+
response: Endpoints["GET /user/migrations/:migration_id/repositories"]["response"];
18921892
};
18931893
mapCommitAuthor: {
18941894
parameters: RequestParameters &

0 commit comments

Comments
 (0)