public class GHPullRequest extends GHIssue
GHRepository.getPullRequest(int)GHIssue.Label, GHIssue.PullRequestassignee, body, closed_at, closed_by, comments, html_url, labels, milestone, number, pull_request, state, title, usercreated_at, id, updated_at, url| Constructor and Description |
|---|
GHPullRequest() |
| Modifier and Type | Method and Description |
|---|---|
GHPullRequestReviewComment |
createReviewComment(java.lang.String body,
java.lang.String sha,
java.lang.String path,
int position) |
int |
getAdditions() |
protected java.lang.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()
Reports who has closed the issue.
|
int |
getDeletions() |
java.net.URL |
getDiffUrl()
The diff file,
like https://github.com/jenkinsci/jenkins/pull/100.diff
|
GHCommitPointer |
getHead()
The change that should be pulled.
|
java.util.Date |
getIssueUpdatedAt()
Deprecated.
|
java.net.URL |
getIssueUrl()
The URL of the patch file.
|
java.util.Collection<GHLabel> |
getLabels() |
java.lang.Boolean |
getMergeable() |
java.lang.String |
getMergeableState() |
java.lang.String |
getMergeCommitSha()
See GitHub blog post
|
java.util.Date |
getMergedAt() |
GHUser |
getMergedBy() |
java.net.URL |
getPatchUrl()
The URL of the patch file.
|
GHIssue.PullRequest |
getPullRequest()
Returns non-null if this issue is a shadow of a pull request.
|
int |
getReviewComments() |
boolean |
isMerged() |
PagedIterable<GHPullRequestCommitDetail> |
listCommits()
Retrieves all the commits associated to this pull request.
|
PagedIterable<GHPullRequestFileDetail> |
listFiles()
Retrieves all the commits associated to this pull request.
|
PagedIterable<GHPullRequestReviewComment> |
listReviewComments()
Obtains all the review comments associated with this pull request.
|
void |
merge(java.lang.String msg)
Merge this pull request.
|
void |
merge(java.lang.String msg,
java.lang.String sha)
Merge this pull request.
|
assignTo, close, comment, createReaction, getApiURL, getAssignee, getBody, getClosedAt, getComments, getCommentsCount, getHtmlUrl, getIssuesApiRoute, getMilestone, getNumber, getRepository, getState, getTitle, getUser, isPullRequest, listComments, listReactions, reopen, setBody, setLabels, setTitlegetCreatedAt, getId, getUpdatedAt, getUrl, toStringprotected java.lang.String getApiRoute()
getApiRoute in class GHIssuepublic java.net.URL getPatchUrl()
public java.net.URL getIssueUrl()
public GHCommitPointer getBase()
public GHCommitPointer getHead()
@Deprecated
public java.util.Date getIssueUpdatedAt()
throws java.io.IOException
java.io.IOExceptionpublic java.net.URL getDiffUrl()
public java.util.Date getMergedAt()
public java.util.Collection<GHLabel> getLabels() throws java.io.IOException
public GHUser getClosedBy()
GHIssueNote that GitHub doesn't always seem to report this information even for an issue that's already closed. See https://github.com/kohsuke/github-api/issues/60.
getClosedBy in class GHIssuepublic GHIssue.PullRequest getPullRequest()
GHIssuegetPullRequest in class GHIssuepublic GHUser getMergedBy() throws java.io.IOException
java.io.IOExceptionpublic int getReviewComments()
throws java.io.IOException
java.io.IOExceptionpublic int getAdditions()
throws java.io.IOException
java.io.IOExceptionpublic boolean isMerged()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Boolean getMergeable()
throws java.io.IOException
java.io.IOExceptionpublic int getDeletions()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getMergeableState()
throws java.io.IOException
java.io.IOExceptionpublic int getChangedFiles()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getMergeCommitSha()
throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHPullRequestFileDetail> listFiles()
public PagedIterable<GHPullRequestReviewComment> listReviewComments() throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHPullRequestCommitDetail> listCommits()
public GHPullRequestReviewComment createReviewComment(java.lang.String body, java.lang.String sha, java.lang.String path, int position) throws java.io.IOException
java.io.IOExceptionpublic void merge(java.lang.String msg)
throws java.io.IOException
msg - Commit message. If null, the default one will be used.java.io.IOExceptionpublic void merge(java.lang.String msg,
java.lang.String sha)
throws java.io.IOException
msg - Commit message. If null, the default one will be used.sha - SHA that pull request head must match to allow merge.java.io.IOExceptionCopyright © 2016. All Rights Reserved.