in src/main/java/com/criteo/gerrit/plugins/automerge/AutomergeConfig.java [49:78]
public AutomergeConfig(@GerritServerConfig final Config config, final SitePaths paths) {
botEmail = config.getString(AUTOMERGE_SECTION, null, BOT_EMAIL_KEY);
if (botEmail == null) {
botEmail = defaultBotEmail;
}
topicPrefix = config.getString(AUTOMERGE_SECTION, null, TOPIC_PREFIX_KEY);
if (topicPrefix == null) {
topicPrefix = defaultTopicPrefix;
}
templatesPath = paths.etc_dir.toFile();
atomicReviewDetected =
new PluginComment(
getCommentPath("atomic_review_detected.txt"),
"This review is part of a cross-repository change.\n"
+ "It will be submitted once all related reviews are submittable.");
atomicReviewsSameRepo =
new PluginComment(
getCommentPath("atomic_review_same_repo.txt"),
"This cross-repo review depends on a not merged commit that must be merged first.");
cantMergeGitConflict =
new PluginComment(
getCommentPath("cantmerge_git_conflict.txt"),
"This cross-repo review is blocked by a git conflict on change #/c/%d.");
cantMergeDependsOnNonMerged =
new PluginComment(
getCommentPath("cantmerge_depends_on_non_merged.txt"),
"This cross-repo review is blocked by a non merged commit below #/c/%d.");
}