Skip to content

Commit

Permalink
Add search page data in search api result
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Feb 16, 2021
1 parent 36d2ead commit 5c315a0
Showing 1 changed file with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ object SearchApi {
case class Project(
organization: String,
repository: String,
logo: Option[String] = None,
artifacts: List[String] = Nil
logo: Option[String],
stars: Option[Int],
forks: Option[Int],
contributorCount: Option[Int],
topics: Set[String],
artifacts: List[String],
scalaVersion: List[String],
scalaJsVersion: List[String],
scalaNativeVersion: List[String],
sbtVersion: List[String]
)

case class ReleaseOptions(
Expand Down Expand Up @@ -220,7 +228,15 @@ class SearchApi(
project.organization,
project.repository,
project.github.flatMap(_.logo.map(_.target)),
project.artifacts
project.github.flatMap(_.stars),
project.github.flatMap(_.forks),
project.github.map(_.contributorCount),
project.github.map(_.topics).getOrElse(Set.empty),
project.artifacts,
project.scalaVersion,
project.sbtVersion,
project.scalaJsVersion,
project.scalaNativeVersion
)
}

Expand Down

0 comments on commit 5c315a0

Please sign in to comment.