Поправил опеределение необходимости уведомлений пользователя при добавлении репозитория

This commit is contained in:
Struchkov Mark 2023-03-05 18:56:59 +03:00
parent 9d85892979
commit 93a0ad49f5
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -60,8 +60,9 @@ public class MergeRequestsServiceImpl implements MergeRequestsService {
public MergeRequest create(@NonNull MergeRequest mergeRequest) {
final boolean botUserReviewer = isBotUserReviewer(mergeRequest);
final boolean botUserAssignee = isBotUserAssigneeAndNotAuthor(mergeRequest);
final boolean botUserAuthor = personInformation.getId().equals(mergeRequest.getAuthor().getId());
mergeRequest.setNotification(botUserReviewer || botUserAssignee);
mergeRequest.setNotification(botUserReviewer || botUserAssignee || botUserAuthor);
mergeRequest.setUserAssignee(botUserAssignee);
mergeRequest.setUserReviewer(botUserReviewer);