Fix placeholder not being replaced with username
This commit is contained in:
parent
9513ba8897
commit
ce75c723fa
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue