MCPcopy Index your code
hub / github.com/bytebase/bytebase / formatRiskLevel

Function formatRiskLevel

action/github/github.go:216–229  ·  view source on GitHub ↗
(r v1pb.RiskLevel)

Source from the content-addressed store, hash-verified

214}
215
216func formatRiskLevel(r v1pb.RiskLevel) string {
217 switch r {
218 case v1pb.RiskLevel_LOW:
219 return "🟢 Low"
220 case v1pb.RiskLevel_MODERATE:
221 return "🟡 Moderate"
222 case v1pb.RiskLevel_HIGH:
223 return "🔴 High"
224 case v1pb.RiskLevel_RISK_LEVEL_UNSPECIFIED:
225 return "⚪ None"
226 default:
227 return "⚪ None"
228 }
229}

Callers 1

buildCommentMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected