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

Function FormatTask

backend/common/resource_name.go:623–626  ·  view source on GitHub ↗

stageID is task environmentID.

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

Source from the content-addressed store, hash-verified

621
622// stageID is task environmentID.
623func FormatTask(projectID string, planUID int64, stageID string, taskUID int64) string {
624 // stageUID is now environmentID
625 return fmt.Sprintf("%s/%s%d", FormatStage(projectID, planUID, stageID), TaskPrefix, taskUID)
626}
627
628// stageID is task environmentID.
629func FormatTaskRun(projectID string, planUID int64, stageID string, taskUID, taskRunUID int64) string {

Callers 4

FormatTaskRunFunction · 0.85

Calls 1

FormatStageFunction · 0.85

Tested by

no test coverage detected