eric sciple 5 år sedan
förälder
incheckning
eed20d30d5
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      dist/index.js
  2. 1 0
      src/github-api-helper.ts

+ 1 - 0
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}'`);
                 }

+ 1 - 0
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}'`