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

Commit c706561

Browse files
committed
Reply on Comment, doesn't trigger Commented event #40
* Solved by listening for PullRequestCommentRepliedEvent
1 parent 30039a0 commit c706561

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Changelog of Pull Request Notifier for Stash.
44

5+
## 1.16
6+
* Triggering also on comment replies if COMMENTED event is checked.
7+
58
## 1.15
69
* 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.
710
* Adding logging to make it easier to debug what events are triggered.

src/main/java/se/bjurr/prnfs/listener/PrnfsPullRequestEventListener.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.atlassian.sal.api.pluginsettings.PluginSettingsFactory;
2222
import com.atlassian.stash.event.pull.PullRequestApprovedEvent;
2323
import com.atlassian.stash.event.pull.PullRequestCommentAddedEvent;
24+
import com.atlassian.stash.event.pull.PullRequestCommentRepliedEvent;
2425
import com.atlassian.stash.event.pull.PullRequestDeclinedEvent;
2526
import com.atlassian.stash.event.pull.PullRequestEvent;
2627
import com.atlassian.stash.event.pull.PullRequestMergedEvent;
@@ -71,6 +72,11 @@ public void onEvent(PullRequestCommentAddedEvent e) {
7172
handleEvent(e);
7273
}
7374

75+
@EventListener
76+
public void onEvent(PullRequestCommentRepliedEvent e) {
77+
handleEvent(e);
78+
}
79+
7480
@EventListener
7581
public void onEvent(PullRequestDeclinedEvent e) {
7682
handleEvent(e);

0 commit comments

Comments
 (0)