From dc8136f983b27ea6ab35906ff700c3b3c4bbf7bf Mon Sep 17 00:00:00 2001 From: Xiong Date: Wed, 22 Sep 2021 14:52:06 -0600 Subject: [PATCH] Update change_log.rb Update to categorize all close issues linked with or without PRs. --- src/change_log.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/change_log.rb b/src/change_log.rb index 9a5a6786..b6bbab67 100644 --- a/src/change_log.rb +++ b/src/change_log.rb @@ -192,6 +192,10 @@ def print_issue(issue) end if closed >= options[:start_date] && closed <= options[:end_date] closed_issues << issue + issue.labels.each do |lbl| + categories[lbl.name] += 1 if categories.key? lbl.name + change_type[lbl.name] += 1 if change_type.key? lbl.name + end end elsif closed >= options[:start_date] && closed <= options[:end_date] accepted_pull_requests << issue