anchor.diff:    return "[${hash.substring(0,8)}](${repoUrl}/commits/$hash)";
   }
   
  +String linkToIssue(int issue, String repoUrl) {
  +  bool repoExist = repoUrl != null && repoUrl.isNotEmpty;
  +  return repoExist ? "[#${issue}](${repoUrl}/issues/$issue)" : "#issue";
  +}
  +
   String currentDate() {
     return new DateFormat('yyyy-MM-dd').format(new DateTime.now());
   }
positive.code:     }
    });
    StringBuffer content = new StringBuffer();
    content.write('<a name="${config.version}">${config.appName}</a>\n# ${config.version} ${config.versionText} (${currentDate()})\n\n');
  
    sections.forEach((sectionName, Map section) {
  
negative.code:       if(printCommitLinks){
          content.write("$prefix ${entry.subject}\n  (${linkToCommit(entry.hash, config.repoUrl)}");
          if(entry.closes.length > 0) {
            content.write(",\n closes: ${entry.closes.map((i) => linkToIssue(i, config.repoUrl)).join(', ')}");
          }
          content.write(")\n");
        }else {
  