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

Function FormatTaskRun

backend/common/resource_name.go:629–631  ·  view source on GitHub ↗

stageID is task environmentID.

(projectID string, planUID int64, stageID string, taskUID, taskRunUID int64)

Source from the content-addressed store, hash-verified

627
628// stageID is task environmentID.
629func FormatTaskRun(projectID string, planUID int64, stageID string, taskUID, taskRunUID int64) string {
630 return fmt.Sprintf("%s/%s%d", FormatTask(projectID, planUID, stageID, taskUID), TaskRunPrefix, taskRunUID)
631}
632
633func FormatReleaseName(projectID string, releaseID string) string {
634 return fmt.Sprintf("%s/%s%s", FormatProject(projectID), ReleaseNamePrefix, releaseID)

Callers 5

runStandardMigrationMethod · 0.92
runGhostMigrationMethod · 0.92
runVersionedReleaseMethod · 0.92
runDeclarativeReleaseMethod · 0.92
convertToTaskRunFunction · 0.92

Calls 1

FormatTaskFunction · 0.85

Tested by

no test coverage detected