commit
ac2778b4c1
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
var version = "v0.07"
|
var version = "v0.09"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
initGitHubClient(version)
|
initGitHubClient(version)
|
||||||
|
|
|
@ -147,7 +147,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
|
||||||
commentAuthor := comment.GetUser().GetLogin()
|
commentAuthor := comment.GetUser().GetLogin()
|
||||||
commentBody := comment.GetBody()
|
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]
|
_, exists := approvals[commentAuthor]
|
||||||
if !exists {
|
if !exists {
|
||||||
approvals[commentAuthor] = 1
|
approvals[commentAuthor] = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue