Class GHPullRequestFileDetail

java.lang.Object
org.kohsuke.github.GHPullRequestFileDetail

public class GHPullRequestFileDetail extends Object
File detail inside a GHPullRequest.
Author:
Julien Henry
See Also:
  • Constructor Details

    • GHPullRequestFileDetail

      public GHPullRequestFileDetail()
      Create default GHPullRequestFileDetail instance
  • Method Details

    • getSha

      public String getSha()
      Gets sha of the file (not commit sha).
      Returns:
      the sha
      See Also:
    • getFilename

      public String getFilename()
      Gets filename.
      Returns:
      the filename
    • getStatus

      public String getStatus()
      Gets status (added/modified/deleted).
      Returns:
      the status
    • getAdditions

      public int getAdditions()
      Gets additions.
      Returns:
      the additions
    • getDeletions

      public int getDeletions()
      Gets deletions.
      Returns:
      the deletions
    • getChanges

      public int getChanges()
      Gets changes.
      Returns:
      the changes
    • getBlobUrl

      public URL getBlobUrl()
      Gets blob url.
      Returns:
      the blob url
    • getRawUrl

      public URL getRawUrl()
      Gets raw url.
      Returns:
      the raw url
    • getContentsUrl

      public URL getContentsUrl()
      Gets contents url.
      Returns:
      the contents url
    • getPatch

      public String getPatch()
      Gets patch.
      Returns:
      the patch
    • getPreviousFilename

      public String getPreviousFilename()
      Gets previous filename.
      Returns:
      the previous filename