Merge pull request #51 from rowbawts/dev

version bump
This commit is contained in:
Sebastian Cabrera 2023-08-30 22:47:57 -04:00 committed by GitHub
commit b0c39c3a52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
package main
var version = "v0.06"
var version = "v0.07"
func main() {
initGitHubClient(version)

View file

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