eric sciple 5 년 전
부모
커밋
31d9a4bd37
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      dist/index.js
  2. 1 1
      src/github-api-helper.ts

+ 1 - 1
dist/index.js

@@ -8393,7 +8393,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) {
+                if (response.status != 200) {
                     throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`);
                 }
                 console.log('GETTING THE LOCATION');

+ 1 - 1
src/github-api-helper.ts

@@ -53,7 +53,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) {
+      if (response.status != 200) {
         throw new Error(
           `Unexpected response from GitHub API. Status: '${response.status}'`
         )