use of com.github.legman.Subscribe in project scm-review-plugin by scm-manager.
the class EmailNotificationHook method handleRejectedPullRequest.
@Subscribe
public void handleRejectedPullRequest(PullRequestRejectedEvent event) {
PullRequest pullRequest = event.getPullRequest();
handleEvent(event, new PullRequestRejectedMailTextResolver(event), pullRequest, getSubscribersWithoutCurrentUser(pullRequest));
}
use of com.github.legman.Subscribe in project scm-review-plugin by scm-manager.
the class EmailNotificationHook method handlePullRequestEvents.
@Subscribe
public void handlePullRequestEvents(PullRequestEvent event) {
PullRequest pullRequest = event.getPullRequest();
EMailRecipientHelper eMailRecipientHelper = new EMailRecipientHelper(pullRequest);
Set<String> subscriberWithoutReviewers = eMailRecipientHelper.getSubscriberWithoutReviewers();
Set<String> reviewers = eMailRecipientHelper.getSubscribingReviewers();
handleEvent(event, new PullRequestEventMailTextResolver(event, false), pullRequest, subscriberWithoutReviewers);
handleEvent(event, new PullRequestEventMailTextResolver(event, true), pullRequest, reviewers);
}
use of com.github.legman.Subscribe in project scm-review-plugin by scm-manager.
the class EmailNotificationHook method handleReplyEvents.
@Subscribe
public void handleReplyEvents(ReplyEvent event) {
PullRequest pullRequest = event.getPullRequest();
Set<String> authorsInThread = getAuthorsInThread(event);
Set<String> subscribers = getSubscribersWithoutCurrentUser(pullRequest);
subscribers.removeAll(authorsInThread);
handleEvent(event, new CommentEventMailTextResolver(event), pullRequest, subscribers);
handleEvent(event, new ReplyEventMailTextResolver(event), pullRequest, authorsInThread);
}
use of com.github.legman.Subscribe in project scm-review-plugin by scm-manager.
the class EmailNotificationHook method handleMergedPullRequest.
@Subscribe
public void handleMergedPullRequest(PullRequestMergedEvent event) {
PullRequest pullRequest = event.getPullRequest();
handleEvent(event, new PullRequestMergedMailTextResolver(event), pullRequest, getSubscribersWithoutCurrentUser(pullRequest));
}
Aggregations