From aee809304a5aa7a3f452fe411898c9171a40e667 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Tue, 17 Jan 2023 11:26:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20Ic?= =?UTF-8?q?ons.PROJECT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/dev/struchkov/bot/gitlab/context/utils/Icons.java | 1 + .../service/notify/NewMrForAssigneeNotifyGenerator.java | 2 +- .../telegram/service/notify/NewMrForReviewNotifyGenerator.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/utils/Icons.java b/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/utils/Icons.java index 0458e67..60280d7 100644 --- a/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/utils/Icons.java +++ b/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/utils/Icons.java @@ -21,6 +21,7 @@ public class Icons { public static final String BUILD = "\uD83D\uDEE0"; public static final String LINK = "\uD83D\uDD17"; public static final String REVIEWER = "\uD83D\uDD0E"; + public static final String PROJECT = "Project"; private Icons() { utilityClass(); diff --git a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForAssigneeNotifyGenerator.java b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForAssigneeNotifyGenerator.java index 87e9351..e246ea9 100644 --- a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForAssigneeNotifyGenerator.java +++ b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForAssigneeNotifyGenerator.java @@ -39,7 +39,7 @@ public class NewMrForAssigneeNotifyGenerator implements NotifyBoxAnswerGenerator builder.append(Icons.HR); if (checkNotNull(notify.getProjectName())) { - builder.append("Project").append(": ").append(escapeMarkdown(notify.getProjectName())); + builder.append(Icons.PROJECT).append(": ").append(escapeMarkdown(notify.getProjectName())); } builder diff --git a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForReviewNotifyGenerator.java b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForReviewNotifyGenerator.java index 7c7af20..c6e1fac 100644 --- a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForReviewNotifyGenerator.java +++ b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/service/notify/NewMrForReviewNotifyGenerator.java @@ -37,7 +37,7 @@ public class NewMrForReviewNotifyGenerator implements NotifyBoxAnswerGenerator