public class GHPullRequest extends GHIssue
GHRepository.getPullRequest(int)GHIssue.Label, GHIssue.PullRequest| Constructor and Description |
|---|
GHPullRequest() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAdditions() |
protected String |
getApiRoute() |
GHCommitPointer |
getBase()
This points to where the change should be pulled into,
but I'm not really sure what exactly it means.
|
int |
getChangedFiles() |
GHUser |
getClosedBy() |
int |
getDeletions() |
URL |
getDiffUrl()
The diff file,
like https://github.com/jenkinsci/jenkins/pull/100.diff
|
GHCommitPointer |
getHead()
The change that should be pulled.
|
Date |
getIssueUpdatedAt()
Deprecated.
|
URL |
getIssueUrl()
The URL of the patch file.
|
Collection<GHIssue.Label> |
getLabels() |
Boolean |
getMergeable() |
String |
getMergeableState() |
Date |
getMergedAt() |
GHUser |
getMergedBy() |
URL |
getPatchUrl()
The URL of the patch file.
|
GHIssue.PullRequest |
getPullRequest() |
int |
getReviewComments() |
boolean |
isMerged() |
PagedIterable<GHPullRequestCommitDetail> |
listCommits()
Retrieves all the commits associated to this pull request.
|
void |
merge(String msg)
Merge this pull request.
|
assignTo, close, comment, getApiURL, getAssignee, getBody, getClosedAt, getComments, getCommentsCount, getCreatedAt, getMilestone, getNumber, getRepository, getState, getTitle, getUpdatedAt, getUrl, getUser, listComments, reopen, setBody, setLabels, setTitleprotected String getApiRoute()
getApiRoute in class GHIssuepublic URL getPatchUrl()
public URL getIssueUrl()
public GHCommitPointer getBase()
public GHCommitPointer getHead()
@Deprecated public Date getIssueUpdatedAt()
public URL getDiffUrl()
public Date getMergedAt()
public Collection<GHIssue.Label> getLabels()
public GHUser getClosedBy()
getClosedBy in class GHIssuepublic GHIssue.PullRequest getPullRequest()
getPullRequest in class GHIssuepublic GHUser getMergedBy() throws IOException
IOExceptionpublic int getReviewComments()
throws IOException
IOExceptionpublic int getAdditions()
throws IOException
IOExceptionpublic boolean isMerged()
throws IOException
IOExceptionpublic Boolean getMergeable() throws IOException
IOExceptionpublic int getDeletions()
throws IOException
IOExceptionpublic String getMergeableState() throws IOException
IOExceptionpublic int getChangedFiles()
throws IOException
IOExceptionpublic PagedIterable<GHPullRequestCommitDetail> listCommits()
public void merge(String msg) throws IOException
msg - Commit message. If null, the default one will be used.IOExceptionCopyright © 2014. All rights reserved.