From 0b63af4c8c1d1020492a785b6799a26c1b6af620 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 10 Dec 2019 02:07:58 -0500 Subject: [PATCH] . --- dist/index.js | 3 ++- src/github-api-helper.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 28a56dc..f49291a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8392,7 +8392,8 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat }; const response = yield octokit.repos.getArchiveLink(params); console.log('GOT THE RESPONSE'); - console.log(response.status); + console.log(`status=${response.status}`); + console.log(`headers=${JSON.stringify(response.headers)}`); if (response.status != 200) { 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 8720656..3407c25 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -52,7 +52,8 @@ export async function downloadRepository( } const response = await octokit.repos.getArchiveLink(params) console.log('GOT THE RESPONSE') - console.log(response.status) + console.log(`status=${response.status}`) + console.log(`headers=${JSON.stringify(response.headers)}`) if (response.status != 200) { throw new Error( `Unexpected response from GitHub API. Status: '${response.status}'`