From c87d262d4b66da85d1e0bc290a74720b9d9d24a8 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Thu, 7 May 2026 09:58:42 +0100 Subject: [PATCH] fix(discussion create): display spinner Signed-off-by: Babak K. Shandiz --- pkg/cmd/discussion/create/create.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cmd/discussion/create/create.go b/pkg/cmd/discussion/create/create.go index 03cf32cc5..5ff4d0a03 100644 --- a/pkg/cmd/discussion/create/create.go +++ b/pkg/cmd/discussion/create/create.go @@ -101,7 +101,9 @@ func createRun(opts *CreateOptions) error { return err } + opts.IO.StartProgressIndicator() categories, err := c.ListCategories(repo) + opts.IO.StopProgressIndicator() if err != nil { return fmt.Errorf("fetching categories: %w", err) } @@ -151,7 +153,9 @@ func createRun(opts *CreateOptions) error { Labels: opts.Labels, } + opts.IO.StartProgressIndicator() discussion, err := c.Create(repo, input) + opts.IO.StopProgressIndicator() if err != nil { return fmt.Errorf("failed to create discussion: %w", err) }