package com.softwaremill.codebrag.domain

object CommitAuthorClassification {
  def commitAuthoredByUser[T, S](commit: T, user: S)(implicit commitLike: CommitLike[T], userLike: UserLike[S]): Boolean = {
    commitLike.authorName(commit) == userLike.userFullName(user) || userLike.userEmails(user).contains(commitLike.authorEmail(commit))
  }
}

package com.softwaremill.codebrag.domain

object CommitAuthorClassification {
  def commitAuthoredByUser[T, S](commit: T, user: S)(implicit commitLike: CommitLike[T], userLike: UserLike[S]): Boolean = {
    commitLike.authorName(commit) == userLike.userFullName(user) ||
      commitLike.authorEmail(commit) == userLike.userEmails(user)
  }
}

--- 
+++ 
@@ -2,7 +2,6 @@
 
 object CommitAuthorClassification {
   def commitAuthoredByUser[T, S](commit: T, user: S)(implicit commitLike: CommitLike[T], userLike: UserLike[S]): Boolean = {
-    commitLike.authorName(commit) == userLike.userFullName(user) ||
-      commitLike.authorEmail(commit) == userLike.userEmails(user)
+    commitLike.authorName(commit) == userLike.userFullName(user) || userLike.userEmails(user).contains(commitLike.authorEmail(commit))
   }
 }
Check on multiple emails if commit authored by user
