From 43ace4dc54afbf543168831fd88d5b802c7c22d5 Mon Sep 17 00:00:00 2001 From: ShubhankarKG Date: Thu, 6 Aug 2020 12:20:39 +0530 Subject: [PATCH] Fix tests failing after merging trunk --- pkg/cmd/repo/create/create.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/repo/create/create.go b/pkg/cmd/repo/create/create.go index 42d4d88d8..3bf309c50 100644 --- a/pkg/cmd/repo/create/create.go +++ b/pkg/cmd/repo/create/create.go @@ -198,12 +198,17 @@ func createRun(opts *CreateOptions) error { greenCheck := utils.Green("✓") isTTY := opts.IO.IsStdoutTTY() + if isTTY { + fmt.Fprintf(stderr, "%s Created repository %s on GitHub\n", greenCheck, ghrepo.FullName(repo)) + } else { + fmt.Fprintln(stdout, repo.URL) + } + // TODO This is overly wordy and I'd like to streamline this. cfg, err := opts.Config() if err != nil { return err } - // TODO: GHE support protocol, err := cfg.Get("", "git_protocol") if err != nil { return err @@ -252,7 +257,6 @@ func createRun(opts *CreateOptions) error { fmt.Fprintln(opts.IO.Out, "Discarding...") return nil } - func interactiveRepoCreate(isDescEmpty bool, isVisibilityPassed bool, repoName string) (string, string, string, error) { qs := []*survey.Question{}