Browse Source

Merge pull request #1208 from Kilo-Org/christiaan/unique-name

Give environment variable qualified name
Christiaan Arnoldus 7 months ago
parent
commit
2d8a9c8a7a

+ 1 - 1
.github/workflows/marketplace-publish.yml

@@ -40,7 +40,7 @@ jobs:
                   git config user.name "github-actions[bot]"
                   git config user.email "github-actions[bot]@users.noreply.github.com"
             - name: Create .env file
-              run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
+              run: echo "KILOCODE_POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
             - name: Package Extension
               run: |
                   current_package_version=$(node -p "require('./src/package.json').version")

+ 1 - 1
packages/telemetry/src/PostHogTelemetryClient.ts

@@ -25,7 +25,7 @@ export class PostHogTelemetryClient extends BaseTelemetryClient {
 			debug,
 		)
 
-		this.client = new PostHog(process.env.POSTHOG_API_KEY || "", { host: "https://us.i.posthog.com" })
+		this.client = new PostHog(process.env.KILOCODE_POSTHOG_API_KEY || "", { host: "https://us.i.posthog.com" })
 	}
 
 	/**

+ 1 - 1
src/core/webview/ClineProvider.ts

@@ -1481,7 +1481,7 @@ export class ClineProvider
 			followupAutoApproveTimeoutMs,
 		} = await this.getState()
 
-		const telemetryKey = process.env.POSTHOG_API_KEY
+		const telemetryKey = process.env.KILOCODE_POSTHOG_API_KEY
 		const machineId = vscode.env.machineId
 
 		const mergedAllowedCommands = this.mergeAllowedCommands(allowedCommands)