public class PullRequest extends Object
| Constructor and Description |
|---|
PullRequest(String id,
URL url,
Repository repository,
Codebase codebase,
PullRequestState state,
String title,
String body,
boolean mergeable,
boolean merged,
MergeableState mergeableState,
Date mergedAt) |
public PullRequest(String id, URL url, Repository repository, Codebase codebase, PullRequestState state, String title, String body, boolean mergeable, boolean merged, MergeableState mergeableState, Date mergedAt)
public String getId()
public URL getURL()
public Codebase getCodebase()
public PullRequestState getState()
public void setState(PullRequestState state)
public String getTitle()
public void setTitle(String title)
public String getBody()
public void setBody(String body)
public Repository getRepository()
public void setRepository(Repository repository)
public boolean isUpstreamRequired()
public URL findUpstreamPullRequestURL() throws MalformedURLException
MalformedURLException - if found URL is invalidpublic URL findUpstreamIssueURL() throws MalformedURLException
MalformedURLException - if found URL is invalidpublic URL findIssueURL() throws MalformedURLException
MalformedURLException - if found URL is invalidpublic List<URL> findRelatedIssuesURL() throws MalformedURLException
MalformedURLException - if one of found URLs is invalidpublic boolean hasUpgradeMeta()
public boolean hasUpgrade()
public PullRequestUpgrade findPullRequestUpgrade()
public List<PullRequest> findReferencedPullRequests() throws NameNotFoundException
NameNotFoundExceptionpublic boolean addComment(String comment) throws NameNotFoundException
NameNotFoundExceptionpublic List<Label> getLabels() throws NameNotFoundException
NameNotFoundExceptionpublic boolean setLabels(List<Label> labels) throws NameNotFoundException
NameNotFoundExceptionpublic boolean addLabel(Label label) throws NameNotFoundException
NameNotFoundExceptionpublic boolean removeLabel(Label label) throws NameNotFoundException
NameNotFoundExceptionpublic CommitStatus getCommitStatus() throws NameNotFoundException
NameNotFoundExceptionpublic void approveOnPullRequest()
throws NameNotFoundException
NameNotFoundExceptionpublic void requestChangesOnPullRequest(String comment) throws NameNotFoundException
NameNotFoundExceptionpublic boolean isMergeable()
public boolean isMerged()
public MergeableState getMergableState()
public Date getMergedAt()
public boolean isUpgrade()
Copyright © 2020 JBoss by Red Hat. All rights reserved.