MCPcopy Index your code
hub / github.com/github/github-mcp-server / getCloseStateReason

Function getCloseStateReason

pkg/github/issues.go:106–115  ·  view source on GitHub ↗

getCloseStateReason converts a string state reason to the appropriate enum value

(stateReason string)

Source from the content-addressed store, hash-verified

104
105// getCloseStateReason converts a string state reason to the appropriate enum value
106func getCloseStateReason(stateReason string) IssueClosedStateReason {
107 switch stateReason {
108 case "not_planned":
109 return IssueClosedStateReasonNotPlanned
110 case "duplicate":
111 return IssueClosedStateReasonDuplicate
112 default: // Default to "completed" for empty or "completed" values
113 return IssueClosedStateReasonCompleted
114 }
115}
116
117// issueFieldWriteMetadataNode queries only the fields needed to resolve a write: the field's
118// fullDatabaseId (BigInt scalar, returned as string) plus its name and data type for validation.

Callers 1

UpdateIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected