MCPcopy Create free account
hub / github.com/codeaashu/claude-code / SuccessStep

Function SuccessStep

src/commands/install-github-app/SuccessStep.tsx:10–95  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

8 skipWorkflow?: boolean;
9};
10export function SuccessStep(t0) {
11 const $ = _c(21);
12 const {
13 secretExists,
14 useExistingSecret,
15 secretName,
16 skipWorkflow: t1
17 } = t0;
18 const skipWorkflow = t1 === undefined ? false : t1;
19 let t2;
20 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
21 t2 = <Box flexDirection="column" marginBottom={1}><Text bold={true}>Install GitHub App</Text><Text dimColor={true}>Success</Text></Box>;
22 $[0] = t2;
23 } else {
24 t2 = $[0];
25 }
26 let t3;
27 if ($[1] !== skipWorkflow) {
28 t3 = !skipWorkflow && <Text color="success">✓ GitHub Actions workflow created!</Text>;
29 $[1] = skipWorkflow;
30 $[2] = t3;
31 } else {
32 t3 = $[2];
33 }
34 let t4;
35 if ($[3] !== secretExists || $[4] !== useExistingSecret) {
36 t4 = secretExists && useExistingSecret && <Box marginTop={1}><Text color="success">✓ Using existing ANTHROPIC_API_KEY secret</Text></Box>;
37 $[3] = secretExists;
38 $[4] = useExistingSecret;
39 $[5] = t4;
40 } else {
41 t4 = $[5];
42 }
43 let t5;
44 if ($[6] !== secretExists || $[7] !== secretName || $[8] !== useExistingSecret) {
45 t5 = (!secretExists || !useExistingSecret) && <Box marginTop={1}><Text color="success">✓ API key saved as {secretName} secret</Text></Box>;
46 $[6] = secretExists;
47 $[7] = secretName;
48 $[8] = useExistingSecret;
49 $[9] = t5;
50 } else {
51 t5 = $[9];
52 }
53 let t6;
54 if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
55 t6 = <Box marginTop={1}><Text>Next steps:</Text></Box>;
56 $[10] = t6;
57 } else {
58 t6 = $[10];
59 }
60 let t7;
61 if ($[11] !== skipWorkflow) {
62 t7 = skipWorkflow ? <><Text>1. Install the Claude GitHub App if you haven't already</Text><Text>2. Your workflow file was kept unchanged</Text><Text>3. API key is configured and ready to use</Text></> : <><Text>1. A pre-filled PR page has been created</Text><Text>2. Install the Claude GitHub App if you haven't already</Text><Text>3. Merge the PR to enable Claude PR assistance</Text></>;
63 $[11] = skipWorkflow;
64 $[12] = t7;
65 } else {
66 t7 = $[12];
67 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected