Skip to content

Commit

Permalink
Rename environment variables used for GitHub token
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Aug 5, 2023
1 parent 86ca70b commit 4ef0aa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/commands/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ command
.description('Export a GitHub project')
.option(
'--access-token <access_token>',
'The access token used to interact with the GitHub API. This can also be set using the GITHUB_TOKEN environment variable.',
process.env.GITHUB_TOKEN,
'The access token used to interact with the GitHub API. This can also be set using the EXPORT_GITHUB_TOKEN environment variable.',
process.env.EXPORT_GITHUB_TOKEN,
)
.option(
'--base-url <base_url>',
Expand Down Expand Up @@ -398,7 +398,7 @@ command

if (!accessToken) {
throw new Error(
'You must specify a GitHub access token using the --access-token argument or GITHUB_TOKEN environment variable.',
'You must specify a GitHub access token using the --access-token argument or EXPORT_GITHUB_TOKEN environment variable.',
);
}

Expand Down
6 changes: 3 additions & 3 deletions src/commands/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ command
.description('Import a GitHub project')
.option(
'--access-token <access_token>',
'The access token used to interact with the GitHub API. This can also be set using the GITHUB_TOKEN environment variable.',
process.env.GITHUB_TOKEN,
'The access token used to interact with the GitHub API. This can also be set using the IMPORT_GITHUB_TOKEN environment variable.',
process.env.IMPORT_GITHUB_TOKEN,
)
.option(
'--base-url <base_url>',
Expand Down Expand Up @@ -715,7 +715,7 @@ command

if (!accessToken) {
throw new Error(
'You must specify a GitHub access token using the --access-token argument or GITHUB_TOKEN environment variable.',
'You must specify a GitHub access token using the --access-token argument or IMPORT_GITHUB_TOKEN environment variable.',
);
}

Expand Down

0 comments on commit 4ef0aa1

Please sign in to comment.