MCPcopy Create free account
hub / github.com/cli/cli / boolToStatus

Function boolToStatus

pkg/cmd/repo/edit/edit.go:646–654  ·  view source on GitHub ↗
(status bool)

Source from the content-addressed store, hash-verified

644}
645
646func boolToStatus(status bool) *string {
647 var result string
648 if status {
649 result = "enabled"
650 } else {
651 result = "disabled"
652 }
653 return &result
654}
655
656func hasSecurityEdits(edits EditRepositoryInput) bool {
657 return edits.enableAdvancedSecurity != nil || edits.enableSecretScanning != nil || edits.enableSecretScanningPushProtection != nil

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected