diff --git a/bot/main.go b/bot/main.go index dd1ed97..8b85894 100644 --- a/bot/main.go +++ b/bot/main.go @@ -1,6 +1,6 @@ package main -var version = "v0.07" +var version = "v0.09" func main() { initGitHubClient(version) diff --git a/bot/utils.go b/bot/utils.go index 6a587b8..473bd92 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -147,7 +147,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { commentAuthor := comment.GetUser().GetLogin() commentBody := comment.GetBody() - if !strings.Contains(userType, "bot") && strings.Contains(commentBody, "+1") { + if !strings.Contains(userType, "bot") && (strings.Contains(commentBody, "+1") || strings.Contains(commentBody, "👍")) { _, exists := approvals[commentAuthor] if !exists { approvals[commentAuthor] = 1