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
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-09 17:01:19 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-09 17:01:19 -0500
commitb750541d2b898eda75e8a36fbee698c9c1978599 (patch)
tree35ce09dc3b3a84157dcca9813f64c3413cf176e4 /src
parenta3220f27da78ca8871a517f4c808a739a436833f (diff)
.
Diffstat (limited to 'src')
-rw-r--r--src/git-source-provider.ts4
-rw-r--r--src/github-api-helper.ts (renamed from src/repository-api-helper.ts)4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts
index dc3e27e..f96cd5d 100644
--- a/src/git-source-provider.ts
+++ b/src/git-source-provider.ts
@@ -6,7 +6,7 @@ import * as gitCommandManager from './git-command-manager'
import * as io from '@actions/io'
import * as path from 'path'
import * as refHelper from './ref-helper'
-import * as repositoryApiHelper from './repository-api-helper'
+import * as githubApiHelper from './github-api-helper'
import {IGitCommandManager} from './git-command-manager'
const authConfigKey = `http.https://github.com/.extraheader`
@@ -79,7 +79,7 @@ export async function getSource(settings: ISourceSettings): Promise<void> {
}
if (!git || `${1}` == '1') {
- await repositoryApiHelper.download(
+ await githubApiHelper.downloadRepository(
settings.accessToken,
settings.repositoryOwner,
settings.repositoryName,
diff --git a/src/repository-api-helper.ts b/src/github-api-helper.ts
index 2e7d69b..3da0154 100644
--- a/src/repository-api-helper.ts
+++ b/src/github-api-helper.ts
@@ -3,7 +3,7 @@ import {ReposGetArchiveLinkParams} from '@octokit/rest'
const IS_WINDOWS = process.platform === 'win32'
-export async function download(
+export async function downloadRepository(
accessToken: string,
owner: string,
repo: string,
@@ -20,5 +20,5 @@ export async function download(
const response = await octokit.repos.getArchiveLink(params)
console.log(`status=${response.status}`)
console.log(`headers=${JSON.stringify(response.headers)}`)
- console.log(`data=${JSON.stringify(response.data)}`)
+ console.log(`data=${JSON.stringify(typeof response.data)}`)
}