Loading dist/index.js +5 −2 Changes for dist/index.js: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -8093,15 +8093,18 @@ function downloadRepository(accessToken, owner, repo, ref, repositoryPath) { return __awaiter(this, void 0, void 0, function* () { const octokit = new github.GitHub(accessToken); const params = { archive_format: IS_WINDOWS ? 'zipball' : 'tarball', archive_format: IS_WINDOWS ? 'zipball' : 'tarballl', owner: owner, repo: repo, ref: ref }; const response = yield octokit.repos.getArchiveLink(params); if (response.status != 200) { throw new Error(`GitHub API call failed with response status '${response.status}': ${response.data}`); } console.log(`status=${response.status}`); console.log(`headers=${JSON.stringify(response.headers)}`); console.log(`data=${JSON.stringify(typeof (response.data))}`); console.log(`data=${JSON.stringify(typeof response.data)}`); }); } exports.downloadRepository = downloadRepository; Loading src/github-api-helper.ts +6 −1 Changes for src/github-api-helper.ts: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,12 +12,17 @@ export async function downloadRepository( ): Promise<void> { const octokit = new github.GitHub(accessToken) const params: ReposGetArchiveLinkParams = { archive_format: IS_WINDOWS ? 'zipball' : 'tarball', archive_format: IS_WINDOWS ? 'zipball' : 'tarballl', owner: owner, repo: repo, ref: ref } const response = await octokit.repos.getArchiveLink(params) if (response.status != 200) { throw new Error( `GitHub API call failed with response status '${response.status}': ${response.data}` ) } console.log(`status=${response.status}`) console.log(`headers=${JSON.stringify(response.headers)}`) console.log(`data=${JSON.stringify(typeof response.data)}`) Loading Loading
dist/index.js +5 −2 Changes for dist/index.js: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -8093,15 +8093,18 @@ function downloadRepository(accessToken, owner, repo, ref, repositoryPath) { return __awaiter(this, void 0, void 0, function* () { const octokit = new github.GitHub(accessToken); const params = { archive_format: IS_WINDOWS ? 'zipball' : 'tarball', archive_format: IS_WINDOWS ? 'zipball' : 'tarballl', owner: owner, repo: repo, ref: ref }; const response = yield octokit.repos.getArchiveLink(params); if (response.status != 200) { throw new Error(`GitHub API call failed with response status '${response.status}': ${response.data}`); } console.log(`status=${response.status}`); console.log(`headers=${JSON.stringify(response.headers)}`); console.log(`data=${JSON.stringify(typeof (response.data))}`); console.log(`data=${JSON.stringify(typeof response.data)}`); }); } exports.downloadRepository = downloadRepository; Loading
src/github-api-helper.ts +6 −1 Changes for src/github-api-helper.ts: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,12 +12,17 @@ export async function downloadRepository( ): Promise<void> { const octokit = new github.GitHub(accessToken) const params: ReposGetArchiveLinkParams = { archive_format: IS_WINDOWS ? 'zipball' : 'tarball', archive_format: IS_WINDOWS ? 'zipball' : 'tarballl', owner: owner, repo: repo, ref: ref } const response = await octokit.repos.getArchiveLink(params) if (response.status != 200) { throw new Error( `GitHub API call failed with response status '${response.status}': ${response.data}` ) } console.log(`status=${response.status}`) console.log(`headers=${JSON.stringify(response.headers)}`) console.log(`data=${JSON.stringify(typeof response.data)}`) Loading