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

Commit

Permalink
Reply on Comment, doesn't trigger Commented event #40
Browse files Browse the repository at this point in the history
* Solved by listening for PullRequestCommentRepliedEvent
  • Loading branch information
tomasbjerre committed Aug 1, 2015
1 parent 30039a0 commit c706561
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Changelog of Pull Request Notifier for Stash.

## 1.16
* Triggering also on comment replies if COMMENTED event is checked.

## 1.15
* Removing RESCOPED event, its confusing when to use it together with _FROM and _TO. RESCOPED was triggered when both _FROM and _TO changed at the exact same time. Now, just check _FROM if you only want to trigger when source branch changes, _TO if only target and both if you want to trigger for both.
* Adding logging to make it easier to debug what events are triggered.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.atlassian.sal.api.pluginsettings.PluginSettingsFactory;
import com.atlassian.stash.event.pull.PullRequestApprovedEvent;
import com.atlassian.stash.event.pull.PullRequestCommentAddedEvent;
import com.atlassian.stash.event.pull.PullRequestCommentRepliedEvent;
import com.atlassian.stash.event.pull.PullRequestDeclinedEvent;
import com.atlassian.stash.event.pull.PullRequestEvent;
import com.atlassian.stash.event.pull.PullRequestMergedEvent;
Expand Down Expand Up @@ -71,6 +72,11 @@ public void onEvent(PullRequestCommentAddedEvent e) {
handleEvent(e);
}

@EventListener
public void onEvent(PullRequestCommentRepliedEvent e) {
handleEvent(e);
}

@EventListener
public void onEvent(PullRequestDeclinedEvent e) {
handleEvent(e);
Expand Down

0 comments on commit c706561

Please sign in to comment.