Skip to content

Commit

Permalink
Fix #311 - Modify changelog script to add a <details> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Feb 11, 2021
1 parent 2859809 commit a0802df
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion developer/ruby/GitHubIssueStats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,16 @@ def print_issue(issue)
totalOpenPullRequests.sort! {|x,y| get_num(x) <=> get_num(y)}

puts "\n**Date Range: #{@begin_date.to_date.iso8601}**#{@prev_tag} - **#{@end_date.to_date.iso8601}:**"
puts "\n**New Issues: #{newIssues.length}** (" + newIssues.map{|issue| get_issue_num(issue)}.join(', ') + ')'

puts "\n**New Issues: #{newIssues.length}**"
puts "\n**Closed Issues: #{closedIssues.length}**"
puts "\n**Accepted Pull Requests: #{acceptedPullRequests.length}**"
puts "\n**Total Open Issues: #{totalOpenIssues.length}**"
puts "\n**Total Open Pull Requests: #{totalOpenPullRequests.length}**"


puts "\n\n<details>"
puts "\n <summary>Click to see details</summary>"

puts "\n**Closed Issues: #{closedIssues.length}**" # (" + closedIssues.map{|issue| get_issue_num(issue)}.join(', ') + ')'
closedIssues.each{|issue| puts print_issue(issue)}
Expand All @@ -149,3 +158,5 @@ def print_issue(issue)

puts "\n**Total Open Issues: #{totalOpenIssues.length}** (" + totalOpenIssues.map{|issue| get_issue_num(issue)}.join(', ') + ')'
puts "\n**Total Open Pull Requests: #{totalOpenPullRequests.length}** (" + totalOpenPullRequests.map{|issue| get_issue_num(issue)}.join(', ') + ')'
puts "\n</details>"

0 comments on commit a0802df

Please sign in to comment.