private static String getDefaultComment()

in commit-status-publisher-server/src/main/java/jetbrains/buildServer/commitPublisher/CommitStatusPublisherListener.java [707:718]


  private static String getDefaultComment(@NotNull BuildPromotion buildPromotion, @Nullable BuildPromotion replacingPromotion, @Nullable User user) {
    if (buildPromotion instanceof BuildPromotionEx) {
      Object skippedAttribute = ((BuildPromotionEx)buildPromotion).getAttribute(BuildAttributes.TEAMCITY_SKIPPED);
      if (skippedAttribute != null && Boolean.parseBoolean(skippedAttribute.toString())) {
        return DefaultStatusMessages.BUILD_SKIPPED;
      }
    }
    if (replacingPromotion == null && buildPromotion.getAssociatedBuildId() != null && !buildPromotion.getDependencies().isEmpty() && user == null) {
      return DefaultStatusMessages.BUILD_REMOVED_FROM_QUEUE_AS_CANCELED;
    }
    return DefaultStatusMessages.BUILD_REMOVED_FROM_QUEUE;
  }