name -> full_name + fixed error message for missing access token

This commit is contained in:
askeluv
2019-03-13 11:47:42 +08:00
parent b88e42a52d
commit 1693506f80
15 changed files with 21 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ let connection: Connection;
connection = await createConnection(ormConfig as ConnectionOptions);
const accessToken = process.env.GITHUB_ACCESS_TOKEN;
if (accessToken === undefined) {
throw new Error('Missing required env var: BLOXY_API_KEY');
throw new Error('Missing required env var: GITHUB_ACCESS_TOKEN');
}
const githubSource = new GithubSource(GITHUB_OWNER, GITHUB_REPO, GITHUB_BRANCH, accessToken);
const observedTimestamp = Date.now();