diff --git a/pom.xml b/pom.xml index 258842bd..d0f19e55 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.10 + 2.7.15 diff --git a/src/main/java/com/lpvs/controller/GitHubWebhooksController.java b/src/main/java/com/lpvs/controller/GitHubWebhooksController.java index b161ae48..ef1a4352 100644 --- a/src/main/java/com/lpvs/controller/GitHubWebhooksController.java +++ b/src/main/java/com/lpvs/controller/GitHubWebhooksController.java @@ -39,7 +39,6 @@ public class GitHubWebhooksController { private String GITHUB_SECRET; - @Autowired ApplicationContext applicationContext; /** diff --git a/src/main/java/com/lpvs/service/LPVSGitHubService.java b/src/main/java/com/lpvs/service/LPVSGitHubService.java index 4848c68b..8f957520 100644 --- a/src/main/java/com/lpvs/service/LPVSGitHubService.java +++ b/src/main/java/com/lpvs/service/LPVSGitHubService.java @@ -88,12 +88,15 @@ public LPVSGitHubService(@Value("${" + GITHUB_LOGIN_PROP_NAME + "}") String GITH } @PostConstruct - @Profile("!test") private void checks() throws Exception { if (this.GITHUB_AUTH_TOKEN.isEmpty()) { log.error(GITHUB_AUTH_TOKEN_ENV_VAR_NAME + "(" + GITHUB_AUTH_TOKEN_PROP_NAME + ") is not set."); exitHandler.exit(-1); } + if (this.GITHUB_LOGIN.isEmpty()) { + log.error(GITHUB_LOGIN_ENV_VAR_NAME + "(" + GITHUB_LOGIN_PROP_NAME + ") is not set."); + exitHandler.exit(-1); + } } private static GitHub gitHub; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9da5f52c..88fb8778 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -42,3 +42,9 @@ spring.datasource.url=jdbc:mysql://localhost:3306/lpvs spring.datasource.username= spring.datasource.password= +# Custom DB components name configuration +app.table.detectedLicenseName=detected_license +app.table.detectedLicenseSchema=soshub +app.table.diffFileName=code_licenses +app.table.pullRequestsName=lpvs_pull_requests +app.table.queueName=queue