diff --git a/src/main/java/io/quarkus/bot/AnalyzeWorkflowRunResults.java b/src/main/java/io/quarkus/bot/AnalyzeWorkflowRunResults.java index f07227d..0b65ca2 100644 --- a/src/main/java/io/quarkus/bot/AnalyzeWorkflowRunResults.java +++ b/src/main/java/io/quarkus/bot/AnalyzeWorkflowRunResults.java @@ -38,7 +38,8 @@ void analyzeWorkflowResults(@WorkflowRun.Completed @WorkflowRun.Requested GHEven .dryRun(quarkusBotConfig.isDryRun()) .monitoredWorkflows(quarkusBotConfigFile.workflowRunAnalysis.workflows) .workflowJobComparator(QuarkusWorkflowJobComparator.INSTANCE) - .enableDevelocity(true) + .enableDevelocity(quarkusBotConfigFile.develocity.enabled) + .develocityUrl(quarkusBotConfigFile.develocity.url) .build(); buildReporterEventHandler.handle(workflowRunPayload, buildReporterConfig, gitHub, gitHubGraphQLClient); diff --git a/src/main/java/io/quarkus/bot/config/QuarkusGitHubBotConfigFile.java b/src/main/java/io/quarkus/bot/config/QuarkusGitHubBotConfigFile.java index 7a07d2a..7fdbee6 100644 --- a/src/main/java/io/quarkus/bot/config/QuarkusGitHubBotConfigFile.java +++ b/src/main/java/io/quarkus/bot/config/QuarkusGitHubBotConfigFile.java @@ -1,13 +1,13 @@ package io.quarkus.bot.config; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.TreeSet; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; + public class QuarkusGitHubBotConfigFile { @JsonDeserialize(as = HashSet.class) @@ -23,6 +23,8 @@ public class QuarkusGitHubBotConfigFile { public Workflows workflows = new Workflows(); + public Develocity develocity = new Develocity(); + public static class TriageConfig { public List rules = new ArrayList<>(); @@ -140,6 +142,13 @@ public static class UserRule { public Integer minContributions; } + public static class Develocity { + + public boolean enabled = false; + + public String url; + } + boolean isFeatureEnabled(Feature feature) { return features.contains(Feature.ALL) || features.contains(feature); }