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) }