Skip to content

Commit 5ae7ccc

Browse files
authored
ref: Fix auth token env variable wording in flutter and apple wizards (#853)
1 parent 35fe14d commit 5ae7ccc

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
- feat: Add `coming-from` parameter ([#837](https://github.com/getsentry/sentry-wizard/pull/837))
66
- feat(deps): Bump axios from 1.7.4 to 1.8.2 ([#844](https://github.com/getsentry/sentry-wizard/pull/844))
7-
- ref: Reword Replay feature selection ([#847](https://github.com/getsentry/sentry-wizard/pull/847))
87
- feat(sourcemaps): Remove NextJS and Remix flows from sourcemaps wizard ([#849](https://github.com/getsentry/sentry-wizard/pull/849))
98

10-
The NextJS and Remix flows have been removed when running the wizard with `npx @sentry/wizard -i sourcemaps`.
11-
Please use `npx @sentry/wizard -i nextjs` and `npx @sentry/wizard -i remix` instead.
9+
The NextJS and Remix flows have been removed when running the wizard with `npx @sentry/wizard -i sourcemaps`.
10+
Please use `npx @sentry/wizard -i nextjs` and `npx @sentry/wizard -i remix` instead.
11+
- ref: Reword Replay feature selection ([#847](https://github.com/getsentry/sentry-wizard/pull/847))
12+
- ref: Fix auth token env variable wording in flutter and apple wizards ([#853](https://github.com/getsentry/sentry-wizard/pull/853))
1213

1314
## 4.2.0
1415

src/apple/apple-wizard.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/* eslint-disable @typescript-eslint/no-unused-vars */
66
// @ts-ignore - clack is ESM and TS complains about that. It works though
77
import clack from '@clack/prompts';
8+
import chalk from 'chalk';
89
import * as fs from 'fs';
910
import * as path from 'path';
1011
import { XcodeProject } from './xcode-manager';
@@ -128,7 +129,14 @@ async function runAppleWizardWithTelementry(
128129

129130
SentryUtils.createSentryCLIRC(projectDir, { auth_token: apiKey.token });
130131
clack.log.info(
131-
'We created a ".sentryclirc" file in your project directory in order to provide an auth token for Sentry CLI.\nIt was also added to your ".gitignore" file.\nAt your CI enviroment, you can set the SENTRY_AUTH_TOKEN environment variable instead. See https://docs.sentry.io/cli/configuration/#auth-token for more information.',
132+
`Created a ${chalk.cyan(
133+
'.sentryclirc',
134+
)} file in your project directory to provide an auth token for Sentry CLI.
135+
136+
It was also added to your ${chalk.cyan('.gitignore')} file.
137+
Set the ${chalk.cyan(
138+
'SENTRY_AUTH_TOKEN',
139+
)} environment variable in your CI environment. See https://docs.sentry.io/cli/configuration/#auth-token for more information.`,
132140
);
133141

134142
let hasCocoa = cocoapod.usesCocoaPod(projectDir);

src/flutter/flutter-wizard.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,13 @@ async function runFlutterWizardWithTelemetry(
109109
);
110110
} else {
111111
clack.log.info(
112-
`We created ${chalk.cyan(
112+
`Created a ${chalk.cyan(
113113
'sentry.properties',
114-
)} file in your project directory in order to provide an auth token for Sentry CLI.\nIt was also added to your ".gitignore" file.\nAt your CI enviroment, you can set the SENTRY_AUTH_TOKEN environment variable instead. See https://docs.sentry.io/cli/configuration/#auth-token for more information.`,
114+
)} file in your project directory to provide an auth token for Sentry CLI.
115+
It was also added to your ${chalk.cyan('.gitignore')} file.
116+
Set the ${chalk.cyan(
117+
'SENTRY_AUTH_TOKEN',
118+
)} environment variable in your CI environment. See https://docs.sentry.io/cli/configuration/#auth-token for more information.`,
115119
);
116120
}
117121
Sentry.setTag('sentry-properties-added', pubspecPatched);

0 commit comments

Comments
 (0)