-
Notifications
You must be signed in to change notification settings - Fork 5
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
#238: calculate total number of unique active contributors #368
Conversation
@Suban05 please review |
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.
@Yegorov looks good. added a small comment
active_contributors << commit.dig(:author, :id) | ||
end | ||
end | ||
f.total_active_contributors = active_contributors.count { |c| !c.nil? } |
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.
@Yegorov maybe it's better use compact
: active_contributors.compact.count
or check for nil
, when we add values to active_contributors
?
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.
@Suban05 Ok, probably it is better to check at once for null. Thanks, fixed!
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.
👍
@yegor256 please check |
@Yegorov thanks! |
@Yegorov Hey there, awesome work on your contribution! 🚀 You've scored +10 points for this one: +4 for showing up, +9 for your 196 hits-of-code (just shy of that 200 mark!), but we had to deduct 4 because there were only 4 review comments. Remember, more review comments can boost your score next time! Keep the code coming - you're doing great! Your current balance is +176. Let's aim for even more points on your next contribution! |
Closes #238