public static class GHCommit.File
extends java.lang.Object
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getBlobUrl()
URL like 'https://github.com/jenkinsci/jenkins/blob/1182e2ebb1734d0653142bd422ad33c21437f7cf/core/pom.xml'
that resolves to the HTML page that describes this file.
|
java.lang.String |
getFileName()
Full path in the repository.
|
int |
getLinesAdded()
Number of lines added.
|
int |
getLinesChanged()
Number of lines added + removed.
|
int |
getLinesDeleted()
Number of lines removed.
|
java.lang.String |
getPatch()
The actual change.
|
java.lang.String |
getPreviousFilename()
Previous path, in case file has moved.
|
java.net.URL |
getRawUrl()
URL like 'https://raw.github.com/jenkinsci/jenkins/4eb17c197dfdcf8ef7ff87eb160f24f6a20b7f0e/core/pom.xml'
that resolves to the actual content of the file.
|
java.lang.String |
getSha()
[0-9a-f]{40} SHA1 checksum.
|
java.lang.String |
getStatus()
"modified", "added", or "removed"
|
public int getLinesChanged()
public int getLinesAdded()
public int getLinesDeleted()
public java.lang.String getStatus()
public java.lang.String getFileName()
public java.lang.String getPreviousFilename()
public java.lang.String getPatch()
public java.net.URL getRawUrl()
public java.net.URL getBlobUrl()
public java.lang.String getSha()
Copyright © 2016. All Rights Reserved.