From 4a1fa615de57a7420d8c8dea5f6ec494b3e5bf41 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 10 Dec 2019 01:52:10 -0500 Subject: [PATCH] . --- dist/index.js | 2 ++ src/github-api-helper.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index 9ee0bf3..bad1e73 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8391,9 +8391,11 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat ref: refHelper.getDownloadRef(ref, commit) }; const response = yield octokit.repos.getArchiveLink(params); + console.log('GOT THE RESPONSE'); if (response.status != 302) { throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`); } + console.log('GETTING THE LOCATION'); const archiveUrl = response.headers['Location']; // Do not print the archive URL because it has an embedded token assert.ok(archiveUrl, `Expected GitHub API response to contain 'Location' header`); // Download the archive diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index 8bec9a6..f4aa8a8 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -51,11 +51,13 @@ export async function downloadRepository( ref: refHelper.getDownloadRef(ref, commit) } const response = await octokit.repos.getArchiveLink(params) + console.log('GOT THE RESPONSE') if (response.status != 302) { throw new Error( `Unexpected response from GitHub API. Status: '${response.status}'` ) } + console.log('GETTING THE LOCATION') const archiveUrl = response.headers['Location'] // Do not print the archive URL because it has an embedded token assert.ok( archiveUrl,