Award contributor badge to DEV Android contributors (#2687)

This commit is contained in:
Glenn Carremans 2019-05-04 15:04:35 +02:00 committed by Ben Halpern
parent 15ea00328c
commit 575dd6d287

View file

@ -44,7 +44,7 @@ module BadgeRewarder
def self.award_contributor_badges_from_github(since = 1.day.ago, message_markdown = "Thank you so much for your contributions!")
client = Octokit::Client.new
badge = Badge.find_by(slug: "dev-contributor")
["thepracticaldev/dev.to", "thepracticaldev/DEV-ios"].each do |repo|
["thepracticaldev/dev.to", "thepracticaldev/DEV-ios", "thepracticaldev/DEV-Android"].each do |repo|
commits = client.commits repo, since: since.iso8601
authors_uids = commits.map { |c| c.author.id }
Identity.where(provider: "github", uid: authors_uids).find_each do |i|