Avoid the duplicated entries of GitHub releases

This commit is contained in:
Hiroshi SHIBATA 2024-01-09 14:53:17 +09:00
Родитель 4b01983bf8
Коммит f82a6172a2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -27,6 +27,8 @@ client = Octokit::Client.new
note = "## What's Changed\n\n"
notes = []
diff = client.compare("ruby/ruby", ARGV[0], ARGV[1])
diff[:commits].each do |c|
if c[:commit][:message] =~ /\[(Backport|Feature|Bug) #(\d*)\]/
@ -40,11 +42,15 @@ diff[:commits].each do |c|
else
next
end
note << "* [#{title}](#{url})\n"
notes << "* [#{title}](#{url})"
rescue OpenURI::HTTPError
puts "Error: #{url}"
end
notes.uniq!
note << notes.join("\n")
note << "\n"
note << "Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.\n\n"
note << "## Full Changelog\n\n"