Удалил ненужный класс, пофиксил ссылки в сообщениях телеги

This commit is contained in:
upagge 2020-03-01 00:50:01 +03:00
parent 3a0029449b
commit fd7a4ab261
3 changed files with 4 additions and 14 deletions

View File

@ -1,8 +0,0 @@
package com.tsc.bitbucketbot.config;
import java.net.Authenticator;
public class AuthProxy extends Authenticator {
}

View File

@ -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-- -- -- -- --"
);

View File

@ -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