Add log to really see whats going on
This commit is contained in:
parent
b43bd104c0
commit
7928bfae7c
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue