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

Function FormatPlanCheckRun

backend/common/resource_name.go:655–657  ·  view source on GitHub ↗

FormatPlanCheckRun formats a plan check run singleton resource name. Format: projects/{project}/plans/{plan}/planCheckRun

(projectID string, planUID int64)

Source from the content-addressed store, hash-verified

653// FormatPlanCheckRun formats a plan check run singleton resource name.
654// Format: projects/{project}/plans/{plan}/planCheckRun
655func FormatPlanCheckRun(projectID string, planUID int64) string {
656 return fmt.Sprintf("%s/planCheckRun", FormatPlan(projectID, planUID))
657}
658
659func FormatSpec(projectID string, planUID int64, specID string) string {
660 return fmt.Sprintf("%s/%s%s", FormatPlan(projectID, planUID), SpecPrefix, specID)

Callers 1

convertToPlanCheckRunFunction · 0.92

Calls 1

FormatPlanFunction · 0.85

Tested by

no test coverage detected