in app/lib/sentry/model/Sentry.scala [44:71]
def writes(repoId: RepoId) = JsString(repoId.fullName)
}
implicit val writesRef = Json.writes[Ref]
}
/*
https://docs.sentry.io/api/releases/post-organization-releases/
version (string) – a version identifier for this release. Can be a version number, a commit hash etc.
ref (string) – an optional commit reference. This is useful if a tagged version has been provided.
url (url) – a URL that points to the release. This can be the path to an online interface to the sourcecode for instance.
projects (array) – a list of project slugs that are involved in this release
dateReleased (datetime) – an optional date that indicates when the release went live. If not provided the current time is assumed.
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.
refs (array) – an optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters repository and commit (the HEAD sha). They can optionally include previousCommit (the sha of the HEAD of the previous release), which should be specified if this is the first time you’ve sent commit data.
*/
case class CreateRelease(
version: String,
ref: Option[String] = None,
url: Option[Uri] = None,
projects: Seq[String],
dateReleased: Option[Instant] = None,
commits: Seq[Commit] = Seq.empty,
refs: Seq[Ref] = Seq.empty
)
object CreateRelease {
implicit val writesUri = new Writes[Uri] {