Skip to content

Commit

Permalink
fix: send request to correct path for .migrations.listReposForUser() (
Browse files Browse the repository at this point in the history
#171)

Co-authored-by: Gregor Martynus <[email protected]>
  • Loading branch information
octokitbot and gr2m authored Jul 22, 2020
1 parent 3245026 commit 04b0e27
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/migrations/listReposForUser.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: List repositories for a user migration
example: octokit.migrations.listReposForUser({ migration_id })
route: GET /user/{migration_id}/repositories
route: GET /user/migrations/{migration_id}/repositories
scope: migrations
type: API method
---
Expand Down
6 changes: 3 additions & 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/types": "^5.1.0",
"@octokit/types": "^5.1.1",
"deprecation": "^2.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -16324,7 +16324,7 @@
"scope": "migrations",
"id": "listReposForUser",
"method": "GET",
"url": "/user/{migration_id}/repositories",
"url": "/user/migrations/{migration_id}/repositories",
"isDeprecated": false,
"deprecationDate": null,
"description": "Lists all the repositories for this user migration.",
Expand Down
2 changes: 1 addition & 1 deletion src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
{ mediaType: { previews: ["wyandotte"] } },
],
listReposForUser: [
"GET /user/{migration_id}/repositories",
"GET /user/migrations/{migration_id}/repositories",
{ mediaType: { previews: ["wyandotte"] } },
],
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
Expand Down
4 changes: 2 additions & 2 deletions src/generated/parameters-and-response-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1885,10 +1885,10 @@ export type RestEndpointMethodTypes = {
listReposForUser: {
parameters: RequestParameters &
Omit<
Endpoints["GET /user/:migration_id/repositories"]["parameters"],
Endpoints["GET /user/migrations/:migration_id/repositories"]["parameters"],
"baseUrl" | "headers" | "mediaType"
>;
response: Endpoints["GET /user/:migration_id/repositories"]["response"];
response: Endpoints["GET /user/migrations/:migration_id/repositories"]["response"];
};
mapCommitAuthor: {
parameters: RequestParameters &
Expand Down

0 comments on commit 04b0e27

Please sign in to comment.