MCPcopy
hub / github.com/cli/cli / reason

Function reason

pkg/cmd/issue/lock/lock.go:209–215  ·  view source on GitHub ↗

reason creates a sentence fragment so that the lock reason can be used in a sentence. e.g. "resolved" -> " as RESOLVED"

(reason string)

Source from the content-addressed store, hash-verified

207//
208// e.g. "resolved" -> " as RESOLVED"
209func reason(reason string) string {
210 result := ""
211 if reason != "" {
212 result = fmt.Sprintf(" as %s", strings.ToUpper(reason))
213 }
214 return result
215}
216
217// status creates a string showing the result of a successful lock/unlock that
218// is parameterized on a bunch of options.

Callers 3

statusFunction · 0.85
lockRunFunction · 0.85
relockLockableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected