mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: generated release notes shouldn't include squashed commits (#10936)
Limit git log output to the first line of the commit message when generating the list of commits in a release. Some commit messages are including the names of all commits that were squashed, resulting in duplicate and confusing lines in the release notes.
This commit is contained in:
parent
e9eeea26b2
commit
d77e30a011
@ -11,7 +11,7 @@ task "release_note:generate", :from, :to do |t, args|
|
||||
sec_changes = Set.new
|
||||
perf_changes = Set.new
|
||||
|
||||
`git log #{from}..#{to}`.each_line do |comment|
|
||||
`git log --pretty="tformat:%s" #{from}..#{to}`.each_line do |comment|
|
||||
next if comment =~ /^\s*Revert/
|
||||
split_comments(comment).each do |line|
|
||||
if line =~ /^FIX:/
|
||||
|
Loading…
Reference in New Issue
Block a user