Поправил добавление ссылки для уведомлений о тредах
This commit is contained in:
parent
d12b8f816b
commit
2ee605119b
@ -373,6 +373,7 @@ public class DiscussionServiceImpl implements DiscussionService {
|
|||||||
|
|
||||||
final MergeRequestForDiscussion mergeRequest = discussion.getMergeRequest();
|
final MergeRequestForDiscussion mergeRequest = discussion.getMergeRequest();
|
||||||
DiscussionNewNotify.DiscussionNewNotifyBuilder messageBuilder = DiscussionNewNotify.builder()
|
DiscussionNewNotify.DiscussionNewNotifyBuilder messageBuilder = DiscussionNewNotify.builder()
|
||||||
|
.url(firstNote.getWebUrl())
|
||||||
.threadId(discussion.getId())
|
.threadId(discussion.getId())
|
||||||
.mrName(mergeRequest.getTitle())
|
.mrName(mergeRequest.getTitle())
|
||||||
.authorName(firstNote.getAuthor().getName());
|
.authorName(firstNote.getAuthor().getName());
|
||||||
@ -381,8 +382,7 @@ public class DiscussionServiceImpl implements DiscussionService {
|
|||||||
final List<Note> notes = discussion.getNotes();
|
final List<Note> notes = discussion.getNotes();
|
||||||
|
|
||||||
messageBuilder
|
messageBuilder
|
||||||
.discussionMessage(firstNote.getBody())
|
.discussionMessage(firstNote.getBody());
|
||||||
.url(firstNote.getWebUrl());
|
|
||||||
|
|
||||||
if (notes.size() > 1) {
|
if (notes.size() > 1) {
|
||||||
for (int i = 1; i < notes.size(); i++) {
|
for (int i = 1; i < notes.size(); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user