FileComparisonNotRenamed

final case class FileComparisonNotRenamed(sha: String, filename: String, status: String, additions: Int, deletions: Int, changes: Int, blob_url: String, raw_url: String, contents_url: String, patch: String) extends FileComparison

Represents a file comparison where a file was not renamed.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

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.

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.

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product