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

Function experimentLastRun

pkg/cli/experiments_command.go:730–739  ·  view source on GitHub ↗

experimentLastRun returns the date (YYYY-MM-DD) of the most recent run, or "" if unknown.

(state *ExperimentState)

Source from the content-addressed store, hash-verified

728
729// experimentLastRun returns the date (YYYY-MM-DD) of the most recent run, or "" if unknown.
730func experimentLastRun(state *ExperimentState) string {
731 if len(state.Runs) == 0 {
732 return ""
733 }
734 ts := state.Runs[len(state.Runs)-1].Timestamp
735 if len(ts) >= 10 {
736 return ts[:10]
737 }
738 return ts
739}
740
741// extractExperimentName extracts the workflow ID from a branch ref.
742//

Callers 2

experimentInfoFromStateFunction · 0.85
TestParseExperimentStateFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseExperimentStateFunction · 0.68