Add extra log when no comments available

This commit is contained in:
Sebastiaan de Schaetzen 2024-10-16 17:50:40 +02:00
parent b12a5c5163
commit 64f30cecfd

View File

@ -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()