From b3aeaf6c2e48cb4227ec42e69083f0597f7e1a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 9 Nov 2022 16:43:18 +0100 Subject: [PATCH] Remove the feedback section from gh help --- pkg/cmd/root/help.go | 3 --- pkg/cmd/root/root.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/pkg/cmd/root/help.go b/pkg/cmd/root/help.go index bec40c95a10..e35486f484d 100644 --- a/pkg/cmd/root/help.go +++ b/pkg/cmd/root/help.go @@ -174,9 +174,6 @@ func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, args []string) { helpEntries = append(helpEntries, helpEntry{"LEARN MORE", ` Use 'gh --help' for more information about a command. Read the manual at https://cli.github.com/manual`}) - if _, ok := command.Annotations["help:feedback"]; ok { - helpEntries = append(helpEntries, helpEntry{"FEEDBACK", command.Annotations["help:feedback"]}) - } out := f.IOStreams.Out for _, e := range helpEntries { diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 3474d66c268..70d49b450c5 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -49,9 +49,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { $ gh pr checkout 321 `), Annotations: map[string]string{ - "help:feedback": heredoc.Doc(` - Open an issue using 'gh issue create -R github.com/cli/cli' - `), "versionInfo": versionCmd.Format(version, buildDate), }, }