diff --git a/Rakefile b/Rakefile index af6df3eca99f5..2a8336282900d 100644 --- a/Rakefile +++ b/Rakefile @@ -1074,6 +1074,12 @@ namespace :all do @git.push if %w[y yes].include?(response) end + task :lint do + ext = /mswin|msys|mingw|cygwin|bccwin|wince|emc/.match?(RbConfig::CONFIG['host_os']) ? 'ps1' : 'sh' + sh "./scripts/format.#{ext}", verbose: true + Rake::Task['py:lint'].invoke + end + desc 'Update everything in preparation for a release' task :prepare, [:version, :channel] do |_task, arguments| chrome_channel = arguments[:channel] || 'Stable' @@ -1252,7 +1258,7 @@ end def update_changelog(version, language, path, changelog, header) tag = previous_tag(version, language) - log = `git --no-pager log #{tag}...HEAD --pretty=format:">>> %B" --reverse #{path}` + log = `git --no-pager log #{tag}...HEAD --pretty=format:"--> %B" --reverse #{path}` commits = log.split('>>>').map { |entry| lines = entry.split("\n") lines.reject! { |line| line.match?(/^(----|Co-authored|Signed-off)/) || line.empty? }