MCPcopy Create free account
hub / github.com/bytebase/bytebase / FormatStageID

Function FormatStageID

backend/common/resource_name.go:610–615  ·  view source on GitHub ↗

FormatStageID returns the stage ID, using EmptyStageID placeholder if environment is empty.

(environment string)

Source from the content-addressed store, hash-verified

608
609// FormatStageID returns the stage ID, using EmptyStageID placeholder if environment is empty.
610func FormatStageID(environment string) string {
611 if environment == "" {
612 return EmptyStageID
613 }
614 return environment
615}
616
617// stageID is task environmentID.
618func FormatStage(projectID string, planUID int64, stageID string) string {

Callers 6

convertToTaskRunFunction · 0.92
convertToRolloutFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected