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

Using --max-issues and --since-commit parameter, cause this reproducible errors #1008

Open
aloknj opened this issue Jan 24, 2022 · 0 comments

Comments

@aloknj
Copy link

aloknj commented Jan 24, 2022

Describe the bug
NoMethodError thrown by gitHub-changelog-generator

To Reproduce
Steps to reproduce the behavior:

  1. Configure environment variable CHANGELOG_GITHUB_TOKEN
  2. 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

@aloknj aloknj changed the title Using --max-issues parameter, cause this reproducible errors Using --max-issues and --since-commit parameter, cause this reproducible errors Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant