Credit line bug (#535)
* Fix a bug that generates multiple credit lines
This commit is contained in:
parent
3798d0637c
commit
fb7e21f9f8
|
@ -21,7 +21,8 @@ module GitHubChangelogGenerator
|
||||||
|
|
||||||
log += File.read(options[:base]) if File.file?(options[:base])
|
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
|
@log = log
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user