diff --git a/src/main/java/com/tsc/bitbucketbot/config/AuthProxy.java b/src/main/java/com/tsc/bitbucketbot/config/AuthProxy.java deleted file mode 100644 index 502d3e3..0000000 --- a/src/main/java/com/tsc/bitbucketbot/config/AuthProxy.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.tsc.bitbucketbot.config; - -import java.net.Authenticator; - -public class AuthProxy extends Authenticator { - - -} diff --git a/src/main/java/com/tsc/bitbucketbot/utils/Message.java b/src/main/java/com/tsc/bitbucketbot/utils/Message.java index 8f671e7..61a91e6 100644 --- a/src/main/java/com/tsc/bitbucketbot/utils/Message.java +++ b/src/main/java/com/tsc/bitbucketbot/utils/Message.java @@ -10,9 +10,7 @@ import java.util.Map; import java.util.Optional; import java.util.stream.Collectors; -import static com.tsc.bitbucketbot.domain.util.ReviewerChange.Type.DELETED; -import static com.tsc.bitbucketbot.domain.util.ReviewerChange.Type.NEW; -import static com.tsc.bitbucketbot.domain.util.ReviewerChange.Type.OLD; +import static com.tsc.bitbucketbot.domain.util.ReviewerChange.Type.*; /** * TODO: Добавить описание класса. @@ -34,7 +32,7 @@ public class Message { @NonNull public static String statusPullRequest(String name, String url, PullRequestStatus oldStatus, PullRequestStatus newStatus) { return "✏️ *Изменился статус вашего ПР*" + BREAK + - "[" + name + "](" + url + ")" + BREAK + + "[" + name + "](" + url.replace("localhost", "192.168.236.164") + ")" + BREAK + oldStatus.name() + " -> " + newStatus.name() + BREAK + "-- -- -- --" + BREAK + "\uD83D\uDCCC: #pullRequest #change" + @@ -76,7 +74,7 @@ public class Message { if (!EMPTY.equalsIgnoreCase(createMessage)) { return Optional.of( SMILE_PEN + " *Изменения ревьюверов вашего ПР*" + BREAK + - "[" + pullRequest.getName() + "](" + pullRequest.getUrl() + ")" + BREAK + + "[" + pullRequest.getName() + "](" + pullRequest.getUrl().replace("localhost", "192.168.236.164") + ")" + BREAK + createMessage + "\n-- -- -- -- --" ); diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index ff0835e..2ad64c1 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -18,7 +18,7 @@ spring: non_contextual_creation: true bitbucketbot: server-send: - url: http://193.164.149.25:8080/api/send + url: http://188.225.35.149:8080/api/send bitbucket: token: Nzg5NjUyNDQwMzk2OlA+6naQz02+GxOG0Q9li/jnsn7E url-pull-request-open: http://localhost:7990/rest/api/1.0/dashboard/pull-requests?limit=150&state=OPEN