Skip to content
Permalink
Browse files
mlbridge: use consistent conf for webrevs
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Aug 18, 2020
1 parent edb4d04 commit 1dbd418c5d791645b52067cecc1c977d1adf6640
Showing with 6 additions and 6 deletions.
  1. +6 −6 bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/MailingListBridgeBotFactory.java
@@ -113,14 +113,14 @@ public List<Bot> create(BotConfiguration configuration) {
var folder = repoConfig.contains("folder") ? repoConfig.get("folder").asString() : configuration.repositoryName(repo);

var webrevGenerateHTML = true;
if (repoConfig.contains("webrev") &&
repoConfig.get("webrev").contains("html") &&
repoConfig.get("webrev").get("html").asBoolean() == false) {
if (repoConfig.contains("webrevs") &&
repoConfig.get("webrevs").contains("html") &&
repoConfig.get("webrevs").get("html").asBoolean() == false) {
webrevGenerateHTML = false;
}
var webrevGenerateJSON = repoConfig.contains("webrev") &&
repoConfig.get("webrev").contains("json") &&
repoConfig.get("webrev").get("json").asBoolean();
var webrevGenerateJSON = repoConfig.contains("webrevs") &&
repoConfig.get("webrevs").contains("json") &&
repoConfig.get("webrevs").get("json").asBoolean();

var botBuilder = MailingListBridgeBot.newBuilder().from(from)
.repo(configuration.repository(repo))

1 comment on commit 1dbd418

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 1dbd418 Aug 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.