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
Fix missing cast to hash in repo discovery script #212
Conversation
This reverts commit 430a73f.
@howcanunot thanks for the fix! Would be great to supplement the fix with a unit test. Otherwise, how do we know anything was fixed? |
What is the best way to add such a test? Would it be enough to add extra case to |
@howcanunot yes, most probably this will be enough. In general, before fixing code, try to reproduce the bug in a test. You should run |
some changes in commit:
|
@yegor256 Good afternoon! Can you please check this pr? |
steps/discover-repos.rb
Outdated
else | ||
github.search_repositories(query, per_page: size, page: page) | ||
end | ||
puts(json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@howcanunot this is a debug output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch..
yeap, I'll remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
thanks!
@rultor merge |
Fix this exception in
discovery-repos.rb
script#211