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

Function planChecksHaveErrors

backend/api/mcp/tool_change.go:492–503  ·  view source on GitHub ↗

planChecksHaveErrors returns true if plan checks completed with errors or failed.

(info *PlanCheckInfo)

Source from the content-addressed store, hash-verified

490
491// planChecksHaveErrors returns true if plan checks completed with errors or failed.
492func planChecksHaveErrors(info *PlanCheckInfo) bool {
493 if info == nil {
494 return false
495 }
496 if info.Status == planCheckFailed {
497 return true
498 }
499 if info.Status == planCheckDone && info.Summary != nil && info.Summary.Error > 0 {
500 return true
501 }
502 return false
503}
504
505// buildResourceURL constructs a URL from externalURL and resource name.
506func (s *Server) buildResourceURL(resourceName string) string {

Callers 1

handleChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected