MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / toEnvKey

Function toEnvKey

packages/setupWizard/src/utils.ts:74–76  ·  view source on GitHub ↗
(connectionName: string, suffix: string)

Source from the content-addressed store, hash-verified

72}
73
74export function toEnvKey(connectionName: string, suffix: string): string {
75 return `${connectionName.toUpperCase().replace(/-/g, '_')}_${suffix}`;
76}
77
78export function generateConnectionName(platform: string, existing: Record<string, unknown>): string {
79 if (!existing[platform]) {

Callers 6

collectGiteaConfigFunction · 0.85
collectGitLabConfigFunction · 0.85
collectGitHubConfigFunction · 0.85
collectAzureDevOpsConfigFunction · 0.85
collectBitbucketCloudFunction · 0.85
collectBitbucketServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected