mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 10:05:33 +08:00
FIX: Include security in release notes
This commit is contained in:
parent
1333378f39
commit
9e55215c71
@ -5,6 +5,7 @@ task "release_note:generate", :tag do |t, args|
|
|||||||
bug_fixes = Set.new
|
bug_fixes = Set.new
|
||||||
new_features = Set.new
|
new_features = Set.new
|
||||||
ux_changes = Set.new
|
ux_changes = Set.new
|
||||||
|
sec_changes = Set.new
|
||||||
|
|
||||||
|
|
||||||
`git log #{tag}..HEAD`.each_line do |comment|
|
`git log #{tag}..HEAD`.each_line do |comment|
|
||||||
@ -16,6 +17,8 @@ task "release_note:generate", :tag do |t, args|
|
|||||||
new_features << better(line)
|
new_features << better(line)
|
||||||
elsif line =~ /^UX:/
|
elsif line =~ /^UX:/
|
||||||
ux_changes << better(line)
|
ux_changes << better(line)
|
||||||
|
elsif line =~ /^SECURITY:/
|
||||||
|
sec_changes << better(line)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -23,6 +26,7 @@ task "release_note:generate", :tag do |t, args|
|
|||||||
puts "NEW FEATURES:", "-------------", "", new_features.to_a, ""
|
puts "NEW FEATURES:", "-------------", "", new_features.to_a, ""
|
||||||
puts "BUG FIXES:", "----------", "", bug_fixes.to_a, ""
|
puts "BUG FIXES:", "----------", "", bug_fixes.to_a, ""
|
||||||
puts "UX CHANGES:", "-----------", "", ux_changes.to_a, ""
|
puts "UX CHANGES:", "-----------", "", ux_changes.to_a, ""
|
||||||
|
puts "SECURITY CHANGES:", "-----------------", "", sec_changes.to_a, ""
|
||||||
end
|
end
|
||||||
|
|
||||||
def better(line)
|
def better(line)
|
||||||
@ -46,7 +50,7 @@ end
|
|||||||
|
|
||||||
def split_comments(text)
|
def split_comments(text)
|
||||||
text = normalize_terms(text)
|
text = normalize_terms(text)
|
||||||
terms = ["FIX:", "FEATURE:", "UX:"]
|
terms = ["FIX:", "FEATURE:", "UX:", "SECURITY:"]
|
||||||
terms.each do |term|
|
terms.each do |term|
|
||||||
text = newlines_at_term(text, term)
|
text = newlines_at_term(text, term)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user