MCPcopy Index your code
hub / github.com/cli/cli / boolToStatus

Function boolToStatus

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

Source from the content-addressed store, hash-verified

637}
638
639func boolToStatus(status bool) *string {
640 var result string
641 if status {
642 result = "enabled"
643 } else {
644 result = "disabled"
645 }
646 return &result
647}
648
649func hasSecurityEdits(edits EditRepositoryInput) bool {
650 return edits.enableAdvancedSecurity != nil || edits.enableSecretScanning != nil || edits.enableSecretScanningPushProtection != nil

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected