in app/lib/PullRequestCheckpointsStateChangeSummary.scala [20:36]
def all(s: PullRequestCheckpointStatus): Boolean = states.forall(_ == s)
def has(s: PullRequestCheckpointStatus) = states.contains(s)
val hasStateForCheckpointsWhichHaveAllBeenSeen: Boolean = states == Set(Seen)
def hasSeen(checkpoint: Checkpoint): Boolean = checkpointsByStatus(Seen).contains(checkpoint.name)
def updateWith(newCheckpointStatus: Map[String, PullRequestCheckpointStatus]) =
PRCheckpointState(newCheckpointStatus ++ statusByCheckpoint.view.filterKeys(checkpointsByStatus(Seen)))
def changeFrom(oldState: PRCheckpointState): Map[String, PullRequestCheckpointStatus] =
(statusByCheckpoint.toSet -- oldState.statusByCheckpoint.toSet).toMap
}
case class PRCommitVisibility(seen: Set[RevCommit], unseen: Set[RevCommit])
object PRCheckpointDetails {