lib/github_changelog_generator/generator/generator_generation.rb
# Main function to start change log generation
#
# @return [String] Generated change log file
Main function to start change log generation
Main function to start change log generation
def compound_changelog
      fetch_and_filter_tags
      fetch_issues_and_pr
      log = ""
      log += options[:frontmatter] if options[:frontmatter]
      log += "#{options[:header]}\n\n"
      log += if options[:unreleased_only]
               generate_log_between_tags(filtered_tags[0], nil)
             else
               generate_log_for_all_tags
             end
      log += File.read(options[:base]) if File.file?(options[:base])
      log += "\n\n\\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*"
      @log = log
    end
def compound_changelog fetch_and_filter_tags fetch_issues_and_pr log = "" log += options [ :frontmatter ] if options [ :frontmatter ] log += "#{options[:header]}\n\n" log += if options [ :unreleased_only ] generate_log_between_tags ( filtered_tags [ 0 ] , nil ) else generate_log_for_all_tags end log += File . read ( options [ :base ] ) if File . file? ( options [ :base ] ) log += "\n\n\\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*" @log = log end
Main function to start change log generation
Main function to start change log generation
Generated change log file
Generated change log file
String