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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
URL |
findIssueURL()
Searches PR body for link to related issue.
|
PullRequestUpgrade |
findPullRequestUpgrade()
TODO: Description - I don't know what this is.
|
List<URL> |
findRelatedIssuesURL()
Searches PR body for links of related issues.
|
URL |
findUpstreamIssueURL()
Searches PR body for link to upstream issue.
|
URL |
findUpstreamPullRequestURL()
Searches PR body for link to upstream PR.
|
String |
getBody() |
Codebase |
getCodebase() |
String |
getId() |
MergeableState |
getMergableState() |
Date |
getMergedAt() |
Repository |
getRepository() |
PullRequestState |
getState() |
String |
getTitle() |
URL |
getURL() |
int |
hashCode() |
boolean |
hasUpgradeMeta()
Check if this PR has upgrade meta present.
|
boolean |
isMergeable() |
boolean |
isMerged() |
boolean |
isUpgrade() |
boolean |
isUpstreamRequired()
Checks if PR body contains indication that upstream work is not required.
|
void |
setBody(String body) |
void |
setRepository(Repository repository) |
void |
setState(PullRequestState state) |
void |
setTitle(String title) |
String |
toString() |
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 PullRequestUpgrade findPullRequestUpgrade()
public boolean isMergeable()
public boolean isMerged()
public MergeableState getMergableState()
public Date getMergedAt()
public boolean isUpgrade()
Copyright © 2017 JBoss by Red Hat. All rights reserved.