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

GitHub Pull Request formatter fails if comments already exist #188

Closed
mknapik opened this issue Oct 18, 2016 · 3 comments
Closed

GitHub Pull Request formatter fails if comments already exist #188

mknapik opened this issue Oct 18, 2016 · 3 comments
Labels

Comments

@mknapik
Copy link
Contributor

mknapik commented Oct 18, 2016

I got the following error on my CI:

/.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/github.rb:35:in `create_pull_comment': undefined method `body' for nil:NilClass (NoMethodError)

After some debugging it turned out the error occurred for already existing comments.
Further troubleshooting showed it might have been related to consolidate_comments option.
I've created example project with 2 pull request:

The only difference is PR1 uses comments consolidation.
GitFormatter#remove_duplicate_comments returns nil for each commit which is already present.

CC: @doomspork

@doomspork
Copy link
Member

@mknapik I'll take a peek at this later today but I can't say I've run into this myself and we've been using the consolidated comments since before they were merged into Pronto.

@doomspork
Copy link
Member

@mknapik were the comments existing before you ran Pronto? Were they from a previous run?

@mknapik
Copy link
Contributor Author

mknapik commented Oct 18, 2016

@doomspork Yes, from previous pronto run.

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

3 participants