From c2793e6b83b518e1adbb97ee901fa71e3974faa1 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 16 Oct 2024 12: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()