def writes()

in app/lib/sentry/model/Sentry.scala [13:43]


    def writes(oid: ObjectId) = JsString(oid.name)
  }

}

/**
commits (array) – an optional list of commit data to be associated with the release.
Commits must include parameters id (the sha of the commit), and can optionally include
repository, message, author_name, author_email, and timestamp.
*/
case class Commit(
  id: ObjectId,
  repository: Option[String],
  message: Option[String],
  author_name: Option[String],
  author_email: Option[String],
  timestamp: Option[Instant]
)

object Commit {
  implicit val writesCommit = Json.writes[Commit]
}

case class Ref(
  repository: RepoId,
  commit: ObjectId,
  previousCommit: Option[ObjectId] = None
)

object Ref {
  implicit val writesRepoId = new Writes[RepoId] {