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

Function workflowFileCandidates

pkg/cli/experiments_command.go:476–479  ·  view source on GitHub ↗

workflowFileCandidates returns a fallback list of candidate workflow file basenames (without .md) for remote lookups when the directory listing is unavailable. The sanitized form (hyphens removed, lowercased) is irreversible, so only the experiment name itself is returned here. The caller should pre

(experimentName string)

Source from the content-addressed store, hash-verified

474// returned here. The caller should prefer findRemoteWorkflowFilenameForExperiment which
475// resolves the real filename by scanning the remote directory.
476func workflowFileCandidates(experimentName string) []string {
477 // Return the experiment name as-is as a last-resort fallback.
478 return []string{experimentName}
479}
480
481// fetchLocalExperiments lists experiment branches and reads their state from the local git repo.
482func fetchLocalExperiments() ([]ExperimentInfo, error) {

Callers 2

Calls

no outgoing calls

Tested by 1