From d77e30a0118b3bd6aa7766d2e4586cded8cbcccf Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 15 Oct 2020 16:20:32 -0400 Subject: [PATCH] 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. --- lib/tasks/release_note.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/release_note.rake b/lib/tasks/release_note.rake index e39a6dcec2..83220c5201 100644 --- a/lib/tasks/release_note.rake +++ b/lib/tasks/release_note.rake @@ -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:/