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

Function GetReviewConfigID

backend/common/resource_name.go:464–470  ·  view source on GitHub ↗

GetReviewConfigID returns the review config id from a resource name.

(name string)

Source from the content-addressed store, hash-verified

462
463// GetReviewConfigID returns the review config id from a resource name.
464func GetReviewConfigID(name string) (string, error) {
465 tokens, err := GetNameParentTokens(name, ReviewConfigPrefix)
466 if err != nil {
467 return "", err
468 }
469 return tokens[0], nil
470}
471
472func GetProjectReleaseID(name string) (string, string, error) {
473 tokens, err := GetNameParentTokens(name, ProjectNamePrefix, ReleaseNamePrefix)

Callers 5

GetReviewConfigMethod · 0.92
UpdateReviewConfigMethod · 0.92
DeleteReviewConfigMethod · 0.92

Calls 1

GetNameParentTokensFunction · 0.70

Tested by

no test coverage detected