From 09f5ac5d373eb5f3bf16f392f4e86114fe7644f6 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Wed, 19 Nov 2014 12:42:23 +0200 Subject: [PATCH] Don't receive issues in case of --no-isses flag specied --- lib/github_changelog_generator.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/github_changelog_generator.rb b/lib/github_changelog_generator.rb index dffeccc..bee57ed 100755 --- a/lib/github_changelog_generator.rb +++ b/lib/github_changelog_generator.rb @@ -25,7 +25,11 @@ module GitHubChangelogGenerator @all_tags = self.get_all_tags @pull_requests = self.get_all_closed_pull_requests - @issues = self.get_all_issues + if @options[:issues] + @issues = self.get_all_issues + else + @issues = [] + end @tag_times_hash = {} end