Using --max-issues and --since-commit parameter, cause this reproducible errors
Describe the bug NoMethodError thrown by gitHub-changelog-generator
To Reproduce Steps to reproduce the behavior:
- Configure environment variable CHANGELOG_GITHUB_TOKEN
- Execute CLI
github_changelog_generator--user=$USER --project=$PROJECT --since-commit "2022-01-15 00:00:00" --max-issues 100`
Expected behavior Should successfully run with above parameters. Below error is thrown every time and its reproducible
Screenshots
WARNING: Faraday::Connection#authorization is deprecated; it will be removed in version 2.0.
While initializing your connection, use #request(:authorization, ...) instead.
See https://lostisland.github.io/faraday/middleware/authentication for more usage info.
Warning: Can't find any tags in repo. Make sure, that you push tags to remote repo via 'git push --tags'
Fetching tags dates: 0/0
Sorting tags...
Received issues: 100
Pull Request count: 2276
Filtered pull requests: 98
Filtered issues: 0
Fetching events for issues and PR: 98
Fetching closed dates for issues: 98/98
Traceback (most recent call last):
9: from /Library/Ruby/Gems/2.6.0/gems/async-1.30.1/lib/async/task.rb:260:in block in make_fiber' 8: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:55:in block in compound_changelog'
7: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:152:in fetch_issues_and_pr' 6: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_fetcher.rb:49:in add_first_occurring_tag_to_prs'
5: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in associate_release_branch_prs' 4: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in reject'
3: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_fetcher.rb:107:in block in associate_release_branch_prs' 2: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_fetcher.rb:200:in sha_in_release_branch?'
1: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:346:in commits_in_branch' /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:379:in commits_in_tag': undefined method `[]' for nil:NilClass (NoMethodError)
Desktop (please complete the following information):
- OS: MacOS
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context ran on terminal ZSH