MCPcopy
hub / github.com/cli/cli / status

Function status

pkg/cmd/issue/lock/lock.go:221–224  ·  view source on GitHub ↗

status creates a string showing the result of a successful lock/unlock that is parameterized on a bunch of options. Example output: "Locked as RESOLVED: Issue #31 (Title of issue)"

(state string, lockable *api.Issue, baseRepo ghrepo.Interface, opts *LockOptions)

Source from the content-addressed store, hash-verified

219//
220// Example output: "Locked as RESOLVED: Issue #31 (Title of issue)"
221func status(state string, lockable *api.Issue, baseRepo ghrepo.Interface, opts *LockOptions) string {
222 return fmt.Sprintf("%sed%s: %s %s#%d (%s)",
223 state, reason(opts.Reason), alias[opts.ParentCmd].FullName, ghrepo.FullName(baseRepo), lockable.Number, lockable.Title)
224}
225
226// lockRun will lock or unlock a conversation.
227func lockRun(state string, opts *LockOptions) error {

Callers 1

lockRunFunction · 0.85

Calls 2

FullNameFunction · 0.92
reasonFunction · 0.85

Tested by

no test coverage detected