Codebase list facter / 1063753
(#6862) Add a default subject for the mail_patches rake task This will prevent committers to forget to write cover letter subject when rake mail_patches needs to send multiple e-mails. It defaults to the "type" and "branch name" of the patch-set. This is taken from Brice's patch against Puppet (37f9ca09135330ed180fb68d9295a4967a5cc857). Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com> Jacob Helwig 13 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3333 # If we've got more than one patch, add --compose
3434 if files.length > 1
3535 compose = "--compose"
36 subject = %Q{--subject "#{type} #{name} against #{parent}"}
3637 else
3738 compose = ""
39 subject = ""
3840 end
3941
4042 # Now send the mail.
41 sh "git send-email #{compose} --no-signed-off-by-cc --suppress-from --to puppet-dev@googlegroups.com 00*.patch"
43 sh "git send-email #{compose} #{subject} --no-signed-off-by-cc --suppress-from --to puppet-dev@googlegroups.com 00*.patch"
4244
4345 # Finally, clean up the patches
4446 sh "rm 00*.patch"