Fixes #507 - Removes old credit lines in log so that there are no duplicates
This commit is contained in:
parent
a26bcc326b
commit
2cc15f7be0
|
@ -21,7 +21,10 @@ 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 = "\n\n\\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*"
|
||||
log.gsub!(credit_line, '') # Remove old credit lines
|
||||
log += credit_line
|
||||
|
||||
@log = log
|
||||
end
|
||||
|
||||
|
@ -175,4 +178,4 @@ module GitHubChangelogGenerator
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user