Предварительная версия

This commit is contained in:
upagge 2020-09-17 17:09:18 +03:00
parent bdd13c5c92
commit 23da158ba9
No known key found for this signature in database
GPG Key ID: 15CD012E46F6BA34
154 changed files with 1029 additions and 768 deletions

66
bitbucket-app/pom.xml Normal file
View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>bitbucketbot</artifactId>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bitbucket-app</artifactId>
<dependencies>
<dependency>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<artifactId>bot-core</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<artifactId>bot-rest</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<artifactId>telegram-bot</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<artifactId>bitbucket-sdk</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,17 @@
package org.sadtech.bot.vcs.bitbucket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@EnableJpaRepositories(basePackages = "org.sadtech.bot.vcs.core.repository.jpa")
@SpringBootApplication(scanBasePackages = "org.sadtech.bot.vcs")
@EntityScan(basePackages = "org.sadtech.bot.vcs.core.domain.entity")
public class BitbucketbotApplication {
public static void main(String[] args) {
SpringApplication.run(BitbucketbotApplication.class, args);
}
}

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.config;
package org.sadtech.bot.vcs.bitbucket.app.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -0,0 +1,14 @@
package org.sadtech.bot.vcs.bitbucket.exception;
/**
* // TODO: 16.09.2020 Добавить описание.
*
* @author upagge 16.09.2020
*/
public class BitbucketAppException extends RuntimeException {
public BitbucketAppException(String message) {
super(message);
}
}

View File

@ -0,0 +1,14 @@
package org.sadtech.bot.vcs.bitbucket.exception;
/**
* // TODO: 16.09.2020 Добавить описание.
*
* @author upagge 16.09.2020
*/
public class ConvertException extends BitbucketAppException {
public ConvertException(String message) {
super(message);
}
}

View File

@ -1,7 +1,7 @@
package org.sadtech.bot.bitbucketbot.scheduler.parser;
package org.sadtech.bot.vcs.bitbucket.scheduler;
import lombok.RequiredArgsConstructor;
import org.sadtech.bot.bitbucketbot.service.parser.CommentAndTaskParser;
import org.sadtech.bot.vcs.bitbucket.service.CommentAndTaskParser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

View File

@ -1,7 +1,7 @@
package org.sadtech.bot.bitbucketbot.scheduler.parser;
package org.sadtech.bot.vcs.bitbucket.scheduler;
import lombok.RequiredArgsConstructor;
import org.sadtech.bot.bitbucketbot.service.impl.parser.PersonBitbucketParser;
import org.sadtech.bot.vcs.bitbucket.service.parser.PersonBitbucketParser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.scheduler.parser;
package org.sadtech.bot.vcs.bitbucket.scheduler;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.sadtech.bot.bitbucketbot.service.parser.PullRequestParser;
import org.sadtech.bot.vcs.core.service.parser.PullRequestParser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

View File

@ -1,25 +1,24 @@
package org.sadtech.bot.bitbucketbot.service.parser;
package org.sadtech.bot.vcs.bitbucket.service;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.sadtech.basic.context.page.Sheet;
import org.sadtech.basic.core.page.PaginationImpl;
import org.sadtech.bot.bitbucketbot.config.InitProperty;
import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
import org.sadtech.bot.bitbucketbot.config.properties.CommentSchedulerProperty;
import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
import org.sadtech.bot.bitbucketbot.domain.entity.Task;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.Severity;
import org.sadtech.bot.bitbucketbot.exception.NotFoundException;
import org.sadtech.bot.bitbucketbot.service.CommentService;
import org.sadtech.bot.bitbucketbot.service.PullRequestsService;
import org.sadtech.bot.bitbucketbot.service.TaskService;
import org.sadtech.bot.bitbucketbot.service.Utils;
import org.sadtech.bot.bitbucketbot.service.executor.DataScan;
import org.sadtech.bot.bitbucketbot.service.impl.ExecutorScanner;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Severity;
import org.sadtech.bot.vcs.bitbucket.service.executor.DataScan;
import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
import org.sadtech.bot.vcs.core.config.properties.CommentSchedulerProperty;
import org.sadtech.bot.vcs.core.config.properties.InitProperty;
import org.sadtech.bot.vcs.core.domain.entity.Comment;
import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
import org.sadtech.bot.vcs.core.domain.entity.Task;
import org.sadtech.bot.vcs.core.exception.NotFoundException;
import org.sadtech.bot.vcs.core.service.CommentService;
import org.sadtech.bot.vcs.core.service.PullRequestsService;
import org.sadtech.bot.vcs.core.service.TaskService;
import org.sadtech.bot.vcs.core.service.Utils;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Component;

View File

@ -1,13 +1,13 @@
package org.sadtech.bot.bitbucketbot.service.impl;
package org.sadtech.bot.vcs.bitbucket.service;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
import org.sadtech.bot.bitbucketbot.service.executor.DataScan;
import org.sadtech.bot.bitbucketbot.service.executor.Executor;
import org.sadtech.bot.bitbucketbot.service.executor.Seeker;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
import org.sadtech.bot.vcs.bitbucket.service.executor.DataScan;
import org.sadtech.bot.vcs.bitbucket.service.executor.Executor;
import org.sadtech.bot.vcs.bitbucket.service.executor.Seeker;
import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
import org.springframework.stereotype.Service;
import java.util.ArrayList;

View File

@ -1,8 +1,9 @@
package org.sadtech.bot.bitbucketbot.service.converter;
package org.sadtech.bot.vcs.bitbucket.service.converter;
import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.Severity;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Severity;
import org.sadtech.bot.vcs.core.domain.entity.Comment;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

View File

@ -1,11 +1,11 @@
package org.sadtech.bot.bitbucketbot.service.converter;
package org.sadtech.bot.vcs.bitbucket.service.converter;
import org.sadtech.basic.context.exception.ConvertException;
import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
import org.sadtech.bot.bitbucketbot.domain.entity.Task;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentState;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.Severity;
import org.sadtech.bot.vcs.bitbucket.exception.ConvertException;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentState;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Severity;
import org.sadtech.bot.vcs.core.domain.TaskStatus;
import org.sadtech.bot.vcs.core.domain.entity.Task;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

View File

@ -1,16 +1,17 @@
package org.sadtech.bot.bitbucketbot.service.converter;
package org.sadtech.bot.vcs.bitbucket.service.converter;
import lombok.RequiredArgsConstructor;
import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
import org.sadtech.bot.bitbucketbot.domain.entity.Reviewer;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.Outcome;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.Properties;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.PullRequestJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.PullRequestState;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserDecisionJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserPullRequestStatus;
import org.sadtech.bot.vcs.bitbucket.exception.ConvertException;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Outcome;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Properties;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestState;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserDecisionJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserPullRequestStatus;
import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
import org.sadtech.bot.vcs.core.domain.entity.Reviewer;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
@ -64,8 +65,9 @@ public class PullRequestJsonConverter implements Converter<PullRequestJson, Pull
return PullRequestStatus.MERGED;
case DECLINED:
return PullRequestStatus.DECLINED;
default:
throw new ConvertException("Неподдерживаемый тип ПР");
}
return null;
}
private List<Reviewer> convertReviewers(List<UserDecisionJson> jsonReviewers) {
@ -89,8 +91,9 @@ public class PullRequestJsonConverter implements Converter<PullRequestJson, Pull
return ReviewerStatus.UNAPPROVED;
case UNAPPROVED:
return ReviewerStatus.NEEDS_WORK;
default:
throw new ConvertException("Неподдерживаемый статус ревьювера");
}
return null;
}
}

View File

@ -1,7 +1,7 @@
package org.sadtech.bot.bitbucketbot.service.converter;
package org.sadtech.bot.vcs.bitbucket.service.converter;
import org.sadtech.bot.bitbucketbot.domain.entity.Person;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserJson;
import org.sadtech.bot.vcs.core.domain.entity.Person;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.service.executor;
package org.sadtech.bot.vcs.bitbucket.service.executor;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.service.executor;
package org.sadtech.bot.vcs.bitbucket.service.executor;
import lombok.NonNull;
@ -9,4 +9,5 @@ public interface Executor<T, D> {
boolean registration(@NonNull List<T> seeker);
List<D> getResult();
}

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.service.executor;
package org.sadtech.bot.vcs.bitbucket.service.executor;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
@Getter
@RequiredArgsConstructor

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.service.executor;
package org.sadtech.bot.vcs.bitbucket.service.executor;
import lombok.RequiredArgsConstructor;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
import org.sadtech.bot.bitbucketbot.service.Utils;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
import org.sadtech.bot.vcs.core.service.Utils;
import java.util.Optional;
import java.util.concurrent.Callable;

View File

@ -1,13 +1,13 @@
package org.sadtech.bot.bitbucketbot.service.impl.parser;
package org.sadtech.bot.vcs.bitbucket.service.parser;
import lombok.RequiredArgsConstructor;
import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
import org.sadtech.bot.bitbucketbot.domain.entity.Person;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.sheet.UserSheetJson;
import org.sadtech.bot.bitbucketbot.service.PersonService;
import org.sadtech.bot.bitbucketbot.service.Utils;
import org.sadtech.bot.bitbucketbot.service.parser.PersonParser;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet.UserSheetJson;
import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
import org.sadtech.bot.vcs.core.domain.entity.Person;
import org.sadtech.bot.vcs.core.service.PersonService;
import org.sadtech.bot.vcs.core.service.Utils;
import org.sadtech.bot.vcs.core.service.parser.PersonParser;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Service;

View File

@ -1,21 +1,21 @@
package org.sadtech.bot.bitbucketbot.service.impl.parser;
package org.sadtech.bot.vcs.bitbucket.service.parser;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
import org.sadtech.bot.bitbucketbot.domain.entity.Person;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
import org.sadtech.bot.bitbucketbot.domain.filter.PullRequestFilter;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.PullRequestJson;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.sheet.PullRequestSheetJson;
import org.sadtech.bot.bitbucketbot.service.PersonService;
import org.sadtech.bot.bitbucketbot.service.PullRequestsService;
import org.sadtech.bot.bitbucketbot.service.Utils;
import org.sadtech.bot.bitbucketbot.service.parser.PullRequestParser;
import org.sadtech.bot.bitbucketbot.utils.Pair;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet.PullRequestSheetJson;
import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import org.sadtech.bot.vcs.core.domain.entity.Person;
import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
import org.sadtech.bot.vcs.core.domain.filter.PullRequestFilter;
import org.sadtech.bot.vcs.core.service.PersonService;
import org.sadtech.bot.vcs.core.service.PullRequestsService;
import org.sadtech.bot.vcs.core.service.Utils;
import org.sadtech.bot.vcs.core.service.parser.PullRequestParser;
import org.sadtech.bot.vcs.core.utils.Pair;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Service;
@ -27,16 +27,12 @@ import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.sadtech.bot.bitbucketbot.domain.PullRequestStatus.DECLINED;
import static org.sadtech.bot.bitbucketbot.domain.PullRequestStatus.MERGED;
import static org.sadtech.bot.bitbucketbot.domain.PullRequestStatus.OPEN;
@Slf4j
@Service
@RequiredArgsConstructor
public class PullRequestBitbucketParser implements PullRequestParser {
private static final Set<PullRequestStatus> OLD_STATUSES = Stream.of(MERGED, OPEN, DECLINED).collect(Collectors.toSet());
private static final Set<PullRequestStatus> OLD_STATUSES = Stream.of(PullRequestStatus.MERGED, PullRequestStatus.OPEN, PullRequestStatus.DECLINED).collect(Collectors.toSet());
private final PullRequestsService pullRequestsService;
private final PersonService personService;

View File

@ -1,10 +1,10 @@
package org.sadtech.bot.bitbucketbot.utils;
package org.sadtech.bot.vcs.bitbucket.utils;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentState;
import org.sadtech.bot.bitbucketbot.exception.NotFoundException;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentState;
import org.sadtech.bot.vcs.core.domain.TaskStatus;
import org.sadtech.bot.vcs.core.exception.NotFoundException;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class Converter {

View File

@ -0,0 +1,5 @@
server:
port: 8018
telegram-config:
bot-username: tsc_test_two_bot
bot-token: 1304335862:AAFXGxRkTZBiL9Gjce_oFoP2cOn7j8qEwDI

View File

@ -18,7 +18,7 @@
</appender>
<root level="info">
<appender-ref ref="FILE"/>
<appender-ref ref="STDOUT"/>
</root>
</configuration>

28
bitbucket-sdk/pom.xml Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>bitbucketbot</artifactId>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bitbucket-sdk</artifactId>
<version>2.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
/**
* TODO: Добавить комментарий енума.

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import org.sadtech.bot.bitbucketbot.utils.LocalDateTimeFromEpochDeserializer;
import org.sadtech.bot.vcs.bitbucket.sdk.utils.LocalDateTimeFromEpochDeserializer;
import java.time.LocalDateTime;
import java.util.List;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
public enum CommentState {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
public enum Outcome {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import org.sadtech.bot.bitbucketbot.utils.LocalDateTimeFromEpochDeserializer;
import org.sadtech.bot.vcs.bitbucket.sdk.utils.LocalDateTimeFromEpochDeserializer;
import java.time.LocalDateTime;
import java.util.List;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
/**
* TODO: Добавить комментарий енума.

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
public enum Severity {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,7 +1,6 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
import org.sadtech.bot.bitbucketbot.domain.BitbucketUserRole;
/**
* TODO: Добавить описание класса.

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.dto.bitbucket;
package org.sadtech.bot.vcs.bitbucket.sdk.domain;
/**
* TODO: Добавить комментарий енума.

View File

@ -0,0 +1,13 @@
package org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestJson;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Sheet;
/**
* TODO: Добавить описание класса.
*
* @author upagge [02.02.2020]
*/
public class PullRequestSheetJson extends Sheet<PullRequestJson> {
}

View File

@ -0,0 +1,13 @@
package org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.Sheet;
import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserJson;
/**
* TODO: Добавить описание класса.
*
* @author upagge [02.02.2020]
*/
public class UserSheetJson extends Sheet<UserJson> {
}

View File

@ -1,16 +1,14 @@
package org.sadtech.bot.bitbucketbot.utils;
package org.sadtech.bot.vcs.bitbucket.sdk.utils;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
@Slf4j
public class LocalDateTimeFromEpochDeserializer extends JsonDeserializer<LocalDateTime> {
@Override
@ -20,7 +18,7 @@ public class LocalDateTimeFromEpochDeserializer extends JsonDeserializer<LocalDa
Instant instant = Instant.ofEpochMilli(time);
return instant.atZone(ZoneId.systemDefault()).toLocalDateTime();
} catch (IOException e) {
log.error(e.getMessage());
}
return null;
}

82
bot-core/pom.xml Normal file
View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>bitbucketbot</artifactId>
<groupId>org.sadtech.bot.bitbucketbot</groupId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bot-core</artifactId>
<version>2.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.sadtech.basic.filter</groupId>
<artifactId>criteria-filter</artifactId>
</dependency>
<dependency>
<groupId>org.sadtech.basic</groupId>
<artifactId>project-database</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.config.properties;
package org.sadtech.bot.vcs.core.config.properties;
import lombok.Getter;
import lombok.Setter;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.config.properties;
package org.sadtech.bot.vcs.core.config.properties;
import lombok.Getter;
import lombok.Setter;
import org.sadtech.bot.bitbucketbot.scheduler.SchedulerComments;
import org.sadtech.bot.vcs.core.scheduler.SchedulerComments;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.config;
package org.sadtech.bot.vcs.core.config.properties;
import lombok.Getter;
import lombok.Setter;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
import lombok.AccessLevel;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
/**
* TODO: Добавить комментарий енума.

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
/**
* @author upagge [31.01.2020]

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
public enum TaskStatus {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain;
package org.sadtech.bot.vcs.core.domain;
/**
* TODO: Добавить описание класса.

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain.change;
package org.sadtech.bot.vcs.core.domain.change;
import lombok.EqualsAndHashCode;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain.change;
package org.sadtech.bot.vcs.core.domain.change;
public enum ChangeType {

View File

@ -1,12 +1,12 @@
package org.sadtech.bot.bitbucketbot.domain.change.comment;
package org.sadtech.bot.vcs.core.domain.change.comment;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.Answer;
import org.sadtech.bot.bitbucketbot.domain.change.Change;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.Answer;
import org.sadtech.bot.vcs.core.domain.change.Change;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.List;

View File

@ -1,11 +1,11 @@
package org.sadtech.bot.bitbucketbot.domain.change.comment;
package org.sadtech.bot.vcs.core.domain.change.comment;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.Change;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.Change;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,10 +1,10 @@
package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.Change;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.domain.change.Change;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import java.util.Set;

View File

@ -1,20 +1,20 @@
package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.domain.util.ReviewerChange;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import static org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange.Type.DELETED;
import static org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange.Type.NEW;
import static org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange.Type.OLD;
import static org.sadtech.bot.vcs.core.domain.util.ReviewerChange.Type.DELETED;
import static org.sadtech.bot.vcs.core.domain.util.ReviewerChange.Type.NEW;
import static org.sadtech.bot.vcs.core.domain.util.ReviewerChange.Type.OLD;
@Getter
@EqualsAndHashCode(callSuper = true)

View File

@ -1,11 +1,11 @@
package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,10 +1,10 @@
package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.change.task;
package org.sadtech.bot.vcs.core.domain.change.task;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.Change;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.domain.change.Change;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import java.util.Set;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.domain.change.task;
package org.sadtech.bot.vcs.core.domain.change.task;
import lombok.Builder;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.change.task;
package org.sadtech.bot.vcs.core.domain.change.task;
import lombok.Builder;
import lombok.Getter;
import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
import org.sadtech.bot.bitbucketbot.utils.Smile;
import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain.entity;
package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain.entity;
package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.entity;
package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import javax.persistence.CascadeType;
import javax.persistence.Column;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain.entity;
package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.entity;
package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
import javax.persistence.CascadeType;
import javax.persistence.Column;

View File

@ -1,9 +1,9 @@
package org.sadtech.bot.bitbucketbot.domain.entity;
package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
import org.sadtech.bot.vcs.core.domain.TaskStatus;
import javax.persistence.CollectionTable;
import javax.persistence.Column;

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.domain.filter;
package org.sadtech.bot.vcs.core.domain.filter;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.domain.util;
package org.sadtech.bot.vcs.core.domain.util;
import lombok.Getter;
import lombok.NonNull;
import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
/**
* TODO: Добавить описание класса.

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.exception;
package org.sadtech.bot.vcs.core.exception;
abstract class BitbucketBotException extends RuntimeException {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.exception;
package org.sadtech.bot.vcs.core.exception;
public class CreateException extends BitbucketBotException {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.exception;
package org.sadtech.bot.vcs.core.exception;
public class NotFoundException extends BitbucketBotException {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.exception;
package org.sadtech.bot.vcs.core.exception;
public class RegException extends BitbucketBotException {

View File

@ -1,4 +1,4 @@
package org.sadtech.bot.bitbucketbot.exception;
package org.sadtech.bot.vcs.core.exception;
public class UpdateException extends BitbucketBotException {

View File

@ -1,7 +1,7 @@
package org.sadtech.bot.bitbucketbot.repository;
package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
import org.sadtech.bot.bitbucketbot.domain.change.Change;
import org.sadtech.bot.vcs.core.domain.change.Change;
import java.util.List;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.repository;
package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
import org.sadtech.basic.context.repository.SimpleManagerRepository;
import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
import org.sadtech.bot.vcs.core.domain.entity.Comment;
import java.time.LocalDateTime;
import java.util.List;

View File

@ -1,7 +1,7 @@
package org.sadtech.bot.bitbucketbot.repository;
package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
import org.sadtech.bot.bitbucketbot.domain.entity.Person;
import org.sadtech.bot.vcs.core.domain.entity.Person;
import java.util.List;
import java.util.Optional;

View File

@ -1,13 +1,13 @@
package org.sadtech.bot.bitbucketbot.repository;
package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
import org.sadtech.basic.context.repository.SimpleManagerRepository;
import org.sadtech.basic.context.repository.simple.FilterOperation;
import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
import java.util.List;
import java.util.Optional;

View File

@ -1,7 +1,7 @@
package org.sadtech.bot.bitbucketbot.repository;
package org.sadtech.bot.vcs.core.repository;
import org.sadtech.basic.context.repository.SimpleManagerRepository;
import org.sadtech.bot.bitbucketbot.domain.entity.Task;
import org.sadtech.bot.vcs.core.domain.entity.Task;
import java.time.LocalDateTime;
import java.util.List;

View File

@ -1,8 +1,8 @@
package org.sadtech.bot.bitbucketbot.repository.impl;
package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import org.sadtech.bot.bitbucketbot.domain.change.Change;
import org.sadtech.bot.bitbucketbot.repository.ChangeRepository;
import org.sadtech.bot.vcs.core.domain.change.Change;
import org.sadtech.bot.vcs.core.repository.ChangeRepository;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;

View File

@ -1,10 +1,10 @@
package org.sadtech.bot.bitbucketbot.repository.impl;
package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import org.sadtech.basic.database.repository.manager.AbstractSimpleManagerRepository;
import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
import org.sadtech.bot.bitbucketbot.repository.CommentRepository;
import org.sadtech.bot.bitbucketbot.repository.jpa.CommentRepositoryJpa;
import org.sadtech.bot.vcs.core.domain.entity.Comment;
import org.sadtech.bot.vcs.core.repository.CommentRepository;
import org.sadtech.bot.vcs.core.repository.jpa.CommentRepositoryJpa;
import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;

View File

@ -1,11 +1,11 @@
package org.sadtech.bot.bitbucketbot.repository.impl;
package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.sadtech.bot.bitbucketbot.domain.entity.Person;
import org.sadtech.bot.bitbucketbot.repository.PersonRepository;
import org.sadtech.bot.bitbucketbot.repository.jpa.PersonJpaRepository;
import org.sadtech.bot.vcs.core.domain.entity.Person;
import org.sadtech.bot.vcs.core.repository.PersonRepository;
import org.sadtech.bot.vcs.core.repository.jpa.PersonJpaRepository;
import org.springframework.dao.InvalidDataAccessResourceUsageException;
import org.springframework.stereotype.Repository;

View File

@ -1,15 +1,15 @@
package org.sadtech.bot.bitbucketbot.repository.impl;
package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import org.sadtech.basic.database.repository.manager.FilterManagerRepository;
import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
import org.sadtech.bot.bitbucketbot.repository.PullRequestsRepository;
import org.sadtech.bot.bitbucketbot.repository.jpa.PullRequestMiniRepositoryJpa;
import org.sadtech.bot.bitbucketbot.repository.jpa.PullRequestsRepositoryJpa;
import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
import org.sadtech.bot.vcs.core.repository.PullRequestsRepository;
import org.sadtech.bot.vcs.core.repository.jpa.PullRequestMiniRepositoryJpa;
import org.sadtech.bot.vcs.core.repository.jpa.PullRequestsRepositoryJpa;
import org.springframework.stereotype.Repository;
import java.util.List;

Some files were not shown because too many files have changed in this diff Show More