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

Error when trying to generate log for repo without tags #32

Closed
rodrigopavezi opened this issue Nov 21, 2014 · 4 comments
Closed

Error when trying to generate log for repo without tags #32

rodrigopavezi opened this issue Nov 21, 2014 · 4 comments
Labels

Comments

@rodrigopavezi
Copy link

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
Copy link
Member

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.

@skywinder skywinder added the bug label Nov 21, 2014
@rodrigopavezi
Copy link
Author

@skywinder creating a tag fixed the problem. thanks!

@skywinder
Copy link
Member

You're welcome!
I'll fix it and add some friendly output for that case in next version.

@skywinder skywinder added this to the 1.2.2 milestone Dec 1, 2014
@rodrigopavezi
Copy link
Author

great, thanks!

@skywinder skywinder changed the title Error when trying to generate Error when trying to generate log for repo without tags Dec 1, 2014
@skywinder skywinder removed this from the 1.2.2 milestone Dec 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants