MCPcopy Create free account
hub / github.com/github/gh-aw / experimentsBranchName

Function experimentsBranchName

pkg/workflow/compiler_experiments.go:117–123  ·  view source on GitHub ↗

experimentsBranchName returns the git branch name used for repo-based experiment storage. Format: "experiments/{sanitizedWorkflowID}"

(workflowID string)

Source from the content-addressed store, hash-verified

115// experimentsBranchName returns the git branch name used for repo-based experiment storage.
116// Format: "experiments/{sanitizedWorkflowID}"
117func experimentsBranchName(workflowID string) string {
118 sanitized := SanitizeWorkflowIDForCacheKey(workflowID)
119 if sanitized == "" {
120 sanitized = "default"
121 }
122 return experimentsBranchPrefix + "/" + sanitized
123}
124
125// extractOneExperimentConfig converts a single raw experiment value into an ExperimentConfig.
126// Returns nil when the value is invalid (e.g. fewer than two variants).

Calls 1

Tested by 1