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

Function deriveNextAction

backend/api/mcp/tool_change.go:480–489  ·  view source on GitHub ↗

deriveNextAction maps approvalStatus to the next agent action.

(approvalStatus string)

Source from the content-addressed store, hash-verified

478
479// deriveNextAction maps approvalStatus to the next agent action.
480func deriveNextAction(approvalStatus string) string {
481 switch approvalStatus {
482 case "APPROVED", "SKIPPED":
483 return nextActionCreateRollout
484 case "REJECTED":
485 return nextActionFixSQLRetry
486 default: // PENDING, CHECKING, or unknown
487 return nextActionApproveIssue
488 }
489}
490
491// planChecksHaveErrors returns true if plan checks completed with errors or failed.
492func planChecksHaveErrors(info *PlanCheckInfo) bool {

Callers 1

handleChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected