MCPcopy Create free account
hub / github.com/compozy/agh / IsMutableTaskField

Function IsMutableTaskField

internal/task/limits.go:90–105  ·  view source on GitHub ↗

IsMutableTaskField reports whether the supplied field name is directly mutable on a task.

(field string)

Source from the content-addressed store, hash-verified

88
89// IsMutableTaskField reports whether the supplied field name is directly mutable on a task.
90func IsMutableTaskField(field string) bool {
91 switch field {
92 case TaskFieldTitle,
93 TaskFieldDescription,
94 TaskFieldPriority,
95 TaskFieldMaxAttempts,
96 TaskFieldAutoEnqueueOnReady,
97 TaskFieldApprovalPolicy,
98 TaskFieldMetadata,
99 TaskFieldNetworkChannel,
100 TaskFieldOwner:
101 return true
102 default:
103 return false
104 }
105}

Callers 1

Calls

no outgoing calls

Tested by 1