Add log to really see whats going on

This commit is contained in:
Sebastian Cabrera 2023-08-30 20:37:38 -04:00
parent b43bd104c0
commit 7928bfae7c

View file

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