Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
feat: add {comment-author} as a placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jun 26, 2018
1 parent e9fe209 commit 4bad098
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ The file can be empty, or it can override any of these default settings:
# Set to `[]` to disable
exemptLabels: []

# Replace matching comments with this message, `{user}` is a placeholder
# for the comment author. Set to `false` to disable
# Replace matching comments with this message, `{comment-author}` is an
# optional placeholder. Set to `false` to disable
reactionComment: >
:wave: @{user}, did you mean to use a [reaction](https://git.io/vhzhC) instead?
:wave: @{comment-author}, did you mean to use
a [reaction](https://git.io/vhzhC) instead?
# Limit to only `issues` or `pulls`
# only: issues
Expand Down
7 changes: 4 additions & 3 deletions assets/app-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ Create `.github/reaction.yml` in the default branch to enable the app. The file
# Set to `[]` to disable
exemptLabels: []

# Replace matching comments with this message, `{user}` is a placeholder
# for the comment author. Set to `false` to disable
# Replace matching comments with this message, `{comment-author}` is an
# optional placeholder. Set to `false` to disable
reactionComment: >
:wave: @{user}, did you mean to use a [reaction](https://git.io/vhzhC) instead?
:wave: @{comment-author}, did you mean to use
a [reaction](https://git.io/vhzhC) instead?
# Limit to only `issues` or `pulls`
# only: issues
Expand Down
2 changes: 1 addition & 1 deletion src/reaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = class Reaction {
}

reactionComment = reactionComment.replace(
/{user}/,
/{(?:user|comment-author)}/,
payload.comment.user.login
);

Expand Down

0 comments on commit 4bad098

Please sign in to comment.