Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/github-api-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:52:10 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:52:10 -0500
commitaeb38684ac6061af028c6f9355b413f464de8c49 (patch)
treea9136ec0b145fdadce15f38d3a5fbb811f2ce8cf /src/github-api-helper.ts
parentbe4fb9fdcea5a33f62f759c74eee936a3020cd3b (diff)
.
Diffstat (limited to 'src/github-api-helper.ts')
-rw-r--r--src/github-api-helper.ts2
1 files changed, 2 insertions, 0 deletions
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,