From eed20d30d59d982721aded3dbe61fde387a2f005 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 10 Dec 2019 01:53:12 -0500 Subject: [PATCH] . --- dist/index.js | 1 + src/github-api-helper.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index bad1e73..0ded637 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8392,6 +8392,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat }; const response = yield octokit.repos.getArchiveLink(params); console.log('GOT THE RESPONSE'); + console.log(response.status); if (response.status != 302) { throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`); } diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index f4aa8a8..764156c 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -52,6 +52,7 @@ export async function downloadRepository( } const response = await octokit.repos.getArchiveLink(params) console.log('GOT THE RESPONSE') + console.log(response.status) if (response.status != 302) { throw new Error( `Unexpected response from GitHub API. Status: '${response.status}'`