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

Function boolToStatus

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected