Fix placeholder not being replaced with username

This commit is contained in:
Sebastian Cabrera 2023-08-30 20:05:58 -04:00
parent 9513ba8897
commit ce75c723fa

View file

@ -195,6 +195,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
}
} else {
commentText := "@(#{commentAuthor}) voted! :tada:\n" + "Votes: (#{reactionCount})/(#{reactionCountGoal})"
commentText = strings.Replace(commentText, "(#{commentAuthor})", eventSender, 1)
commentText = strings.Replace(commentText, "(#{reactionCount})", strconv.Itoa(len(approvals)), 1)
commentText = strings.Replace(commentText, "(#{reactionCountGoal})", strconv.Itoa(reactionCountGoal), 1)