зеркало из https://github.com/github/ruby.git
Avoid the duplicated entries of GitHub releases
This commit is contained in:
Родитель
4b01983bf8
Коммит
f82a6172a2
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче