Error when trying to generate log for repo without tags
rodrigopavezi opened this issue · 4 comments
rodrigopavezi commented
Hi There,
I am getting the following error when running the command with my token.
Generating changelog:
Sorting tags..
Generating log..
/Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:326:in `get_time_of_tag': undefined method `[]' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:207:in `generate_log_between_tags'
from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:246:in `generate_log_before_tag'
from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:159:in `generate_log_for_all_tags'
from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:128:in `compund_changelog'
from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/bin/github_changelog_generator:4:in `<top (required)>'
from /usr/bin/github_changelog_generator:23:in `load'
from /usr/bin/github_changelog_generator:23:in `<main>'
Would you know what should I do?
Thanks!
skywinder commented
Hi!
undefined method []
- It seems, that script didn't find any tags in your repo and I didn't check that array can benil
in the script.
Make sure that you push all tags to GitHub. git push --tags
Please give me more information about your running command params. (at least user-name and project-name) to debug.
rodrigopavezi commented
@skywinder creating a tag fixed the problem. thanks!
skywinder commented
You're welcome!
I'll fix it and add some friendly output for that case in next version.
rodrigopavezi commented
great, thanks!