RepoUrlKeys
object RepoUrlKeys
Type members
Classlikes
final case class CommitComparisonResponse(status: String, ahead_by: Int, behind_by: Int, total_commits: Int, url: Option[String], html_url: Option[String], permalink_url: Option[String], diff_url: Option[String], patch_url: Option[String], base_commit: Option[Commit], merge_base_commit: Option[Commit], commits: Seq[Commit], files: Seq[FileComparison])
A file comparison that contains information on the changes to a file.
There are two subtypes: FileComparisonNotRenamed
and FileComparisonRenamed
that have different guarantees.
A file comparison that contains information on the changes to a file.
There are two subtypes: FileComparisonNotRenamed
and FileComparisonRenamed
that have different guarantees.
FileComparisonNotRenamed
guarantees that thepatch
field exists, does not have aprevious_filename
field.FileComparisonRenamed
guarantees that theprevious_filename
field exists and sometimes contains apatch
field.
To get values from these fields, there are helper methods getPatch
and getPreviousFilename
, though
it is recomended to match on your FileComparison
value to determine which type it is, to remove ambiguity.
- Companion:
- object