From 32f8283c77ff6188250b0d3f9183902b8701f228 Mon Sep 17 00:00:00 2001 From: chemotaxis Date: Fri, 29 Apr 2022 00:17:53 -0400 Subject: [PATCH] Refactor things - Switch to underscores - Revise error message --- pkg/cmd/issue/lock/lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/issue/lock/lock.go b/pkg/cmd/issue/lock/lock.go index 58e3bc026..c78a48af9 100644 --- a/pkg/cmd/issue/lock/lock.go +++ b/pkg/cmd/issue/lock/lock.go @@ -31,7 +31,7 @@ import ( // the reason for not just declaring a map is so that I can put the keys in // alphabetical order -var reasons = []string{"off-topic", "resolved", "spam", "too-heated"} +var reasons = []string{"off_topic", "resolved", "spam", "too_heated"} var reasonsString = strings.Join(reasons, ", ") var reasonsApi = []githubv4.LockReason{ @@ -122,7 +122,7 @@ func NewCmdLock(f *cmdutil.Factory, parentName string) *cobra.Command { if !ok { cs := opts.IO.ColorScheme() - return cmdutil.FlagErrorf("%s Invalid reason: %v.\nSee help for options.\nAborting lock.", + return cmdutil.FlagErrorf("%s Invalid reason: %v.\n Aborting lock. See help for options.", cs.FailureIconWithColor(cs.Red), opts.Reason) } }