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

Function boolToStatus

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected