Skip to content

Commit

Permalink
feat: better loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Jan 10, 2025
1 parent 9db3801 commit e6b34bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/home/rendering/render-github-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ function everyNewNotification({

const commentData = commentsMap.get(notification.notification.id.toString());

if ((!commentData || commentData.commentBody === "") || (commentData.userType === "Bot" && !showBotNotifications)) return;
if ((!commentData || commentData.commentBody === "") || (commentData.userType === "Bot" && !showBotNotifications)){
console.log("skipping ", notification.notification.subject.title, " because of empty comment or bot notification");
return;
}

setUpIssueElement(providerToken, issueElement, notification, organizationName, repositoryName, labels, commentData);
issueWrapper.appendChild(issueElement);
Expand Down

0 comments on commit e6b34bb

Please sign in to comment.