Skip to content

Commit

Permalink
Merge pull request #15 from danielma/dma/dont-notify-no-work-hours
Browse files Browse the repository at this point in the history
fix(Reminder): no notifications unless someone is working
  • Loading branch information
Daniel Ma authored May 15, 2017
2 parents 1716006 + d3c3b0c commit 5fcb222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/review_bot/reminder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def potential_notifications
pull.reviewers.include?(reviewer['github'])
end

next if suggested_reviewers.empty?
next if suggested_reviewers.select(&:work_hour?).empty?

Notification.new(
pull_request: pull,
Expand Down

0 comments on commit 5fcb222

Please sign in to comment.