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)
| 219 | // |
| 220 | // Example output: "Locked as RESOLVED: Issue #31 (Title of issue)" |
| 221 | func 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. |
| 227 | func lockRun(state string, opts *LockOptions) error { |