From 64f30cecfdfb6f1d7612e7dbb9f8f570d9c08a4e Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 16 Oct 2024 17:50:40 +0200 Subject: [PATCH] Add extra log when no comments available --- actions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actions.go b/actions.go index 231c180..afd7931 100644 --- a/actions.go +++ b/actions.go @@ -320,6 +320,9 @@ func ActionViewComments(_ []string) { printError("Failed to get issue", err) return } + if len(issue.Fields.Comments.Comments) == 0 { + println("This issue has no comments") + } for i, comment := range issue.Fields.Comments.Comments { if i != 0 { println()