commit
b0c39c3a52
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
var version = "v0.06"
|
||||
var version = "v0.07"
|
||||
|
||||
func main() {
|
||||
initGitHubClient(version)
|
||||
|
|
|
@ -88,7 +88,7 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
log.Println("User type:", userType, "Comment body:", commentBody)
|
||||
|
||||
if !strings.Contains(userType, "bot") && strings.Contains(commentBody, "+1") {
|
||||
if !strings.Contains(userType, "bot") && (strings.Contains(commentBody, "+1") || strings.Contains(commentBody, "👍")) {
|
||||
log.Println("Received Issue Comment Event: processing now!")
|
||||
processIssueCommentEvent(event)
|
||||
break
|
||||
|
@ -99,6 +99,8 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) {
|
|||
log.Println("Received Pull Request Event: processing now!")
|
||||
processPullRequestEvent(event)
|
||||
break
|
||||
case *github.StarEvent:
|
||||
log.Println("Someone starred us, we're a star!")
|
||||
default:
|
||||
log.Println("Received Unhandled Event!")
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue