Sha256: 7ff6024cc6b92ef8abd53268fd2f5823f1f2859a49f1ea6da2ba81e96d146a85
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true desc 'update changelog' task :changelog do File.open('CHANGELOG', 'w+') do |changelog| `git log -z --abbrev-commit`.split("\0").each do |commit| next if commit =~ /^Merge: \d*/ ref, author, time, _, title, _, message = commit.split("\n", 7) ref = ref[/commit ([0-9a-f]+)/, 1] author = author[/Author: (.*)/, 1].strip time = Time.parse(time[/Date: (.*)/, 1]).utc title.strip! changelog.puts "[#{ref} | #{time}] #{author}" changelog.puts '', " * #{title}" changelog.puts '', message.rstrip if message changelog.puts end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pgpass-2023.01.01 | tasks/changelog.rake |
pgpass-2022.07.27 | tasks/changelog.rake |