From 3e9fbbb2fa74cfd9396000e5c80689a6ad079f1d Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Mon, 16 Feb 2026 21:53:17 +0000 Subject: [PATCH] refactor(workflow run): remove temp `out` Signed-off-by: Babak K. Shandiz --- pkg/cmd/workflow/run/run.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/cmd/workflow/run/run.go b/pkg/cmd/workflow/run/run.go index 5f9a44764..0484b3c06 100644 --- a/pkg/cmd/workflow/run/run.go +++ b/pkg/cmd/workflow/run/run.go @@ -360,23 +360,22 @@ func runRun(opts *RunOptions) error { } if opts.IO.IsStdoutTTY() { - out := opts.IO.Out cs := opts.IO.ColorScheme() - fmt.Fprintf(out, "%s Created workflow_dispatch event for %s at %s\n", + fmt.Fprintf(opts.IO.Out, "%s Created workflow_dispatch event for %s at %s\n", cs.SuccessIcon(), cs.Cyan(workflow.Base()), cs.Bold(ref)) if response.HtmlURL != "" { - fmt.Fprintln(out, response.HtmlURL) + fmt.Fprintln(opts.IO.Out, response.HtmlURL) } - fmt.Fprintln(out) + fmt.Fprintln(opts.IO.Out) if response.WorkflowRunID != 0 { - fmt.Fprintf(out, "To see the created workflow run, try: %s\n", + fmt.Fprintf(opts.IO.Out, "To see the created workflow run, try: %s\n", cs.Boldf("gh run view %d", response.WorkflowRunID)) } - fmt.Fprintf(out, "To see runs for this workflow, try: %s\n", + fmt.Fprintf(opts.IO.Out, "To see runs for this workflow, try: %s\n", cs.Boldf("gh run list --workflow=%q", workflow.Base())) } else { if response.HtmlURL != "" {