java.lang.Object
org.kohsuke.github.GHCommitPointer
Identifies a commit in
GHPullRequest
.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObtains the commit that this pointer is referring to.getLabel()
String that looks like "USERNAME:REF".getRef()
Named ref to the commit.The repository that contains the commit.getSha()
SHA1 of the commit.getUser()
This points to the user who owns thegetRepository()
.
-
Constructor Details
-
GHCommitPointer
public GHCommitPointer()Create default GHCommitPointer instance
-
-
Method Details
-
getUser
This points to the user who owns thegetRepository()
.- Returns:
- the user
- Throws:
IOException
- the io exception
-
getRepository
The repository that contains the commit.- Returns:
- the repository
-
getRef
Named ref to the commit. This appears to be a "short ref" that doesn't include "refs/heads/" portion.- Returns:
- the ref
-
getSha
SHA1 of the commit.- Returns:
- the sha
-
getLabel
String that looks like "USERNAME:REF".- Returns:
- the label
-
getCommit
Obtains the commit that this pointer is referring to.- Returns:
- the commit
- Throws:
IOException
- the io exception
-