From 382bf9dddbf51df7a029bfff1c3a8083c6770b8d Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Wed, 22 Jul 2020 16:19:59 -0700 Subject: [PATCH] fix: correct path prefix for user migration endpoints (#137) --- .../update-endpoints/generated/endpoints.json | 2 +- src/generated/Endpoints.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 7cd32095d..0e43d635d 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -15459,7 +15459,7 @@ "scope": "migrations", "id": "listReposForUser", "method": "GET", - "url": "/user/{migration_id}/repositories", + "url": "/user/migrations/{migration_id}/repositories", "documentationUrl": "https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration", "parameters": [ { diff --git a/src/generated/Endpoints.ts b/src/generated/Endpoints.ts index 8afd36913..5b0741e14 100644 --- a/src/generated/Endpoints.ts +++ b/src/generated/Endpoints.ts @@ -3107,14 +3107,6 @@ export interface Endpoints { request: UsersGetAuthenticatedRequestOptions; response: OctokitResponse; }; - /** - * @see https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration - */ - "GET /user/:migration_id/repositories": { - parameters: MigrationsListReposForUserEndpoint; - request: MigrationsListReposForUserRequestOptions; - response: OctokitResponse; - }; /** * @see https://developer.github.com/v3/users/blocking/#list-users-blocked-by-the-authenticated-user */ @@ -3293,6 +3285,14 @@ export interface Endpoints { request: MigrationsGetArchiveForAuthenticatedUserRequestOptions; response: OctokitResponse; }; + /** + * @see https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration + */ + "GET /user/migrations/:migration_id/repositories": { + parameters: MigrationsListReposForUserEndpoint; + request: MigrationsListReposForUserRequestOptions; + response: OctokitResponse; + }; /** * @see https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user */ @@ -17743,7 +17743,7 @@ type MigrationsListReposForUserEndpoint = { type MigrationsListReposForUserRequestOptions = { method: "GET"; - url: "/user/:migration_id/repositories"; + url: "/user/migrations/:migration_id/repositories"; headers: RequestHeaders; request: RequestRequestOptions; };