def compound_changelog
      @options.load_custom_ruby_files
      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_entry_between_tags(@filtered_tags[0], nil)
             else
               generate_entries_for_all_tags
             end

      log += File.read(@options[:base]) if File.file?(@options[:base])

      credit_line = "\n\n\\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*"
      log.gsub!(/#{credit_line}(\n)?/, "") # Remove old credit lines
      log += "#{credit_line}\n"

      @log = log
    end
def compound_changelog
      @options.load_custom_ruby_files
      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_entry_between_tags(@filtered_tags[0], nil)
             else
               generate_entries_for_all_tags
             end

      log += File.read(@options[:base]) if File.file?(@options[:base])

      credit_line = "\n\n\\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*"
      log.gsub!(/#{credit_line}(\n)?/, "") # Remove old credit lines
      log += "#{credit_line}\n"

      @log = log
    end
A Generator responsible for all logic, related with changelog generation from ready-to-parse issues

 Example:
   generator = GitHubChangelogGenerator::Generator.new
   content = generator.compound_changelog
 Main function to start changelog generation

 @return [String] Generated changelog file