Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #311 - Modify changelog script to add a <details> tag #312

Merged
merged 1 commit into from
Feb 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>"