FileComparisonRenamed

github4s.domain.RepoUrlKeys.FileComparison.FileComparisonRenamed
final case class FileComparisonRenamed(sha: String, filename: String, additions: Int, deletions: Int, changes: Int, blob_url: String, raw_url: String, contents_url: String, patch: Option[String], previous_filename: String) extends FileComparison

Represents a file comparison where the file was renamed. The patch field will exist if there were also small internal file changes, and the previous_filename field is guaranteed to exist, containing the file's previous filename.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getPatch: Option[String]

Gets the contents of the patch field if it exists, in the case that the file was modified. To guarantee that the patch field is available, match this FileComparison value as a FileComparison.FileComparisonNotRenamed type which always has this field.

Gets the contents of the patch field if it exists, in the case that the file was modified. To guarantee that the patch field is available, match this FileComparison value as a FileComparison.FileComparisonNotRenamed type which always has this field.

Attributes

def getPreviousFilename: Option[String]

Gets the contents of the previous_filename field if it exists. This field is guaranteed to appear in the event of any rename. To guarantee that this field is available, match this FileComparison value as a FileComparison.FileComparisonRenamde type which always has this field.

Gets the contents of the previous_filename field if it exists. This field is guaranteed to appear in the event of any rename. To guarantee that this field is available, match this FileComparison value as a FileComparison.FileComparisonRenamde type which always has this field.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val status: String