MCPcopy Create free account
hub / github.com/github/gh-aw / IsValid

Method IsValid

pkg/workflow/action_mode.go:35–37  ·  view source on GitHub ↗

IsValid checks if the action mode is valid

()

Source from the content-addressed store, hash-verified

33
34// IsValid checks if the action mode is valid
35func (m ActionMode) IsValid() bool {
36 return m == ActionModeDev || m == ActionModeRelease || m == ActionModeScript || m == ActionModeAction
37}
38
39// IsDev returns true if the action mode is development mode
40func (m ActionMode) IsDev() bool {

Calls

no outgoing calls