diff --git a/bot/utils.go b/bot/utils.go index ad3f94c..68cfa95 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -86,6 +86,8 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) { userType := strings.ToLower(event.GetComment().GetUser().GetType()) commentBody := event.GetComment().GetBody() + log.Println("User type:", userType, "Comment body:", commentBody) + if !strings.Contains(userType, "bot") && strings.Contains(commentBody, ":+1:") { log.Println("Received Issue Comment Event: processing now!") processIssueCommentEvent(event)