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