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

Function checkoutStepName

pkg/workflow/checkout_step_generator.go:593–604  ·  view source on GitHub ↗

checkoutStepName returns a human-readable description for a checkout step.

(key checkoutKey)

Source from the content-addressed store, hash-verified

591
592// checkoutStepName returns a human-readable description for a checkout step.
593func checkoutStepName(key checkoutKey) string {
594 if key.repository != "" && key.path != "" {
595 return fmt.Sprintf("%s into %s", key.repository, key.path)
596 }
597 if key.repository != "" {
598 return key.repository
599 }
600 if key.path != "" {
601 return key.path
602 }
603 return "repository"
604}
605
606// fetchRefToRefspec converts a user-facing fetch pattern to a git refspec.
607//

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected