From af03cdb4e31e1e041389b5255d8c40c93d9482cc Mon Sep 17 00:00:00 2001 From: okseby Date: Wed, 30 Aug 2023 23:11:08 -0400 Subject: [PATCH 1/3] version bump --- bot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/main.go b/bot/main.go index dd1ed97..d7556bb 100644 --- a/bot/main.go +++ b/bot/main.go @@ -1,6 +1,6 @@ package main -var version = "v0.07" +var version = "v0.08" func main() { initGitHubClient(version) From d55a8872cf082dcaa9dceb1cb271231a979c024f Mon Sep 17 00:00:00 2001 From: okseby Date: Wed, 30 Aug 2023 23:57:43 -0400 Subject: [PATCH 2/3] Temporarily fix duplicate vote checks with weird emoji variants, will make a better system later --- bot/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 83de4b978d5650095a3c185a34362c77dc05ddde Mon Sep 17 00:00:00 2001 From: okseby Date: Wed, 30 Aug 2023 23:58:09 -0400 Subject: [PATCH 3/3] version bump --- bot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/main.go b/bot/main.go index d7556bb..8b85894 100644 --- a/bot/main.go +++ b/bot/main.go @@ -1,6 +1,6 @@ package main -var version = "v0.08" +var version = "v0.09" func main() { initGitHubClient(version)