in teamcity-premerge-server/src/main/java/jetbrains/buildServer/premerge/PremergeRunType.java [61:74]
public PropertiesProcessor getRunnerPropertiesProcessor() {
return new PropertiesProcessor() {
@Override
public Collection<InvalidProperty> process(Map<String, String> properties) {
final HashSet<InvalidProperty> invalid = new HashSet<>();
String targetBranch = properties.get(PremergeConstants.TARGET_BRANCH);
if (StringUtil.isEmpty(targetBranch)) {
invalid.add(new InvalidProperty(PremergeConstants.TARGET_BRANCH, "Target branch must be specified"));
}
return invalid;
}
};
}