lib/github_changelog_generator/generator/generator_generation.rb
def filter_issues_for_tags(newer_tag, older_tag)
      filtered_pull_requests = delete_by_time(@pull_requests, "actual_date", older_tag, newer_tag)
      filtered_issues        = delete_by_time(@issues, "actual_date", older_tag, newer_tag)

      newer_tag_name = newer_tag.nil? ? nil : newer_tag["name"]

      if options[:filter_issues_by_milestone]
        # delete excess irrelevant issues (according milestones). Issue #22.
        filtered_issues = filter_by_milestone(filtered_issues, newer_tag_name, @issues)
        filtered_pull_requests = filter_by_milestone(filtered_pull_requests, newer_tag_name, @pull_requests)
      end
      [filtered_issues, filtered_pull_requests]
    end
# Apply all filters to issues and pull requests
#
# @return [Array] filtered issues and pull requests
Apply all filters to issues and pull requests
Apply all filters to issues and pull requests
def filter_issues_for_tags(newer_tag, older_tag)
      filtered_pull_requests = delete_by_time(@pull_requests, "actual_date", older_tag, newer_tag)
      filtered_issues        = delete_by_time(@issues, "actual_date", older_tag, newer_tag)
      newer_tag_name = newer_tag.nil? ? nil : newer_tag["name"]
      if options[:filter_issues_by_milestone]
        filtered_issues = filter_by_milestone(filtered_issues, newer_tag_name, @issues)
        filtered_pull_requests = filter_by_milestone(filtered_pull_requests, newer_tag_name, @pull_requests)
      end
      [filtered_issues, filtered_pull_requests]
    end
def filter_issues_for_tags ( newer_tag , older_tag ) filtered_pull_requests = delete_by_time ( @pull_requests , "actual_date" , older_tag , newer_tag ) filtered_issues = delete_by_time ( @issues , "actual_date" , older_tag , newer_tag ) newer_tag_name = newer_tag . nil? ? nil : newer_tag [ "name" ] if options [ :filter_issues_by_milestone ] filtered_issues = filter_by_milestone ( filtered_issues , newer_tag_name , @issues ) filtered_pull_requests = filter_by_milestone ( filtered_pull_requests , newer_tag_name , @pull_requests ) end [ filtered_issues , filtered_pull_requests ] end
Apply all filters to issues and pull requests
Apply all filters to issues and pull requests
# delete excess irrelevant issues (according milestones). Issue #22.
filtered issues and pull requests
filtered issues and pull requests
Array
newer_tag
older_tag