Credit line bug (#535)

* Fix a bug that generates multiple credit lines
This commit is contained in:
Lucas Huang 2017-06-26 22:45:59 -07:00 committed by Olle Jonsson
parent 3798d0637c
commit fb7e21f9f8

View File

@ -21,7 +21,8 @@ module GitHubChangelogGenerator
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)*"
credit_line = "\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*"
log += "\n\n\#{credit_line}" if log.include? credit_line == false
@log = log
end