public class GHCompare extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHCompare.Commit
Compare commits had a child commit element with additional details we want to capture.
|
static class |
GHCompare.InnerCommit
The type InnerCommit.
|
static class |
GHCompare.Status
The enum Status.
|
static class |
GHCompare.Tree
The type Tree.
|
static class |
GHCompare.User
Deprecated.
use
GitUser instead. |
| Modifier and Type | Field and Description |
|---|---|
GHCompare.Status |
status |
| Constructor and Description |
|---|
GHCompare() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAheadBy()
Gets ahead by.
|
GHCompare.Commit |
getBaseCommit()
Gets base commit.
|
int |
getBehindBy()
Gets behind by.
|
GHCompare.Commit[] |
getCommits()
Gets an array of commits.
|
URL |
getDiffUrl()
Gets diff url.
|
GHCommit.File[] |
getFiles()
Gets an array of commits.
|
URL |
getHtmlUrl()
Gets html url.
|
GHCompare.Commit |
getMergeBaseCommit()
Gets merge base commit.
|
URL |
getPatchUrl()
Gets patch url.
|
URL |
getPermalinkUrl()
Gets permalink url.
|
GHCompare.Status |
getStatus()
Gets status.
|
int |
getTotalCommits()
Gets total commits.
|
URL |
getUrl()
Gets url.
|
GHCompare |
wrap(GHRepository owner)
Wrap gh compare.
|
public GHCompare.Status status
public URL getUrl()
public URL getHtmlUrl()
public URL getPermalinkUrl()
public URL getDiffUrl()
public URL getPatchUrl()
public GHCompare.Status getStatus()
public int getAheadBy()
public int getBehindBy()
public int getTotalCommits()
public GHCompare.Commit getBaseCommit()
public GHCompare.Commit getMergeBaseCommit()
public GHCompare.Commit[] getCommits()
public GHCommit.File[] getFiles()
public GHCompare wrap(GHRepository owner)
owner - the ownerCopyright © 2020. All rights reserved.