YAML front matter

This commit is contained in:
retorquere
2016-02-03 13:56:44 +01:00
committed by Petr Korolev
parent d36c67c063
commit 6f17e7c236
2 changed files with 6 additions and 1 deletions

View File

@@ -8,7 +8,9 @@ module GitHubChangelogGenerator
sort_tags_by_date(@filtered_tags)
fetch_issues_and_pr
log = "#{@options[:header]}\n\n"
log = ''
log += @options[:frontmatter] if @options[:frontmatter]
log += "#{@options[:header]}\n\n"
if @options[:unreleased_only]
log += generate_log_between_tags(filtered_tags[0], nil)