From 8777073be5092f339fa17057a706c37e5c8532f8 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Fri, 17 Jan 2020 16:15:38 -0800 Subject: [PATCH] feat: `.migrations.listReposForOrg()`, `.migrations.listReposForUser()` --- plugins/rest-api-endpoints/routes.json | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/plugins/rest-api-endpoints/routes.json b/plugins/rest-api-endpoints/routes.json index 229b700a..daa9e4df 100644 --- a/plugins/rest-api-endpoints/routes.json +++ b/plugins/rest-api-endpoints/routes.json @@ -1970,10 +1970,28 @@ }, "url": "/orgs/:org/migrations" }, - "mapCommitAuthor": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" + "listReposForOrg": { + "headers": { "accept": "application/vnd.github.wyandotte-preview+json" }, + "method": "GET", + "params": { + "migration_id": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" } }, + "url": "/orgs/:org/migrations/:migration_id/repositories" + }, + "listReposForUser": { + "headers": { "accept": "application/vnd.github.wyandotte-preview+json" }, + "method": "GET", + "params": { + "migration_id": { "required": true, "type": "integer" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" } + }, + "url": "/user/:migration_id/repositories" + }, + "mapCommitAuthor": { "method": "PATCH", "params": { "author_id": { "required": true, "type": "integer" },