You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`Set the environment variable for your project:
48
+
functiongeneratePercyTokenInstructions(): string{
49
+
return`Set the PERCY_TOKEN environment variable for your project. Retrieve your project's token from the Percy dashboard (https://percy.io → Project Settings → Project Token) and add it to your project's .env file (PERCY_TOKEN=<your Percy project token>) or export it in your shell:
Copy file name to clipboardExpand all lines: src/tools/sdk-utils/percy-automate/handler.ts
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ import { SDKSupportedLanguage } from "../common/types.js";
5
5
6
6
exportfunctionrunPercyAutomateOnly(
7
7
input: SetUpPercyInput,
8
-
percyToken: string,
9
8
): RunTestsInstructionResult{
10
9
conststeps: RunTestsStep[]=[];
11
10
@@ -26,7 +25,7 @@ export function runPercyAutomateOnly(
26
25
steps.push({
27
26
type: "instruction",
28
27
title: "Set Percy Token in Environment",
29
-
content: `Here is percytoken if required {${percyToken}}`,
28
+
content: `Retrieve your project's token from the Percy dashboard (https://percy.io → Project Settings → Project Token) and add it to your project's .env file (PERCY_TOKEN=<your Percy project token>) or export it in your shell (e.g. export PERCY_TOKEN="<your Percy project token>"). Do not paste the token into chat or commit it.`,
// Assume configuration is supported due to guardrails at orchestration layer
@@ -32,9 +29,12 @@ export function runPercyWeb(
32
29
steps.push({
33
30
type: "instruction",
34
31
title: "Set Percy Token in Environment",
35
-
content: `Set the environment variable for your project:
36
-
export PERCY_TOKEN="${percyToken}"
37
-
(For Windows: use 'setx PERCY_TOKEN "${percyToken}"' or 'set PERCY_TOKEN=${percyToken}' as appropriate.)`,
32
+
content: `Retrieve your project's token from the Percy dashboard (https://percy.io → Project Settings → Project Token) and add it to your project's .env file (PERCY_TOKEN=<your Percy project token>) or export it in your shell:
0 commit comments