public class RedhatPullRequest extends Object
| Constructor and Description |
|---|
RedhatPullRequest(org.eclipse.egit.github.core.PullRequest pullRequest,
IssueHelper bzHelper,
IssueHelper jiraHelper,
GithubHelper ghHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(org.eclipse.egit.github.core.Label newLabel) |
BuildResult |
getBuildResult() |
List<org.eclipse.egit.github.core.Comment> |
getGithubComments() |
String |
getGithubDescription() |
List<org.eclipse.egit.github.core.Label> |
getGithubLabels() |
Date |
getGithubUpdatedAt() |
org.eclipse.egit.github.core.User |
getGithubUser() |
String |
getHtmlUrl() |
List<Issue> |
getIssues()
Returns a merged list of both Bugzilla and Jira Issues found in the body of a Pull Request.
|
org.eclipse.egit.github.core.Comment |
getLastMatchingGithubComment(Pattern pattern) |
org.eclipse.egit.github.core.Milestone |
getMilestone() |
int |
getNumber() |
String |
getOrganization() |
List<RedhatPullRequest> |
getRelatedPullRequests() |
String |
getRepository() |
String |
getSourceBranchSha() |
String |
getState() |
String |
getTargetBranchTitle() |
boolean |
hasBugLinkInDescription() |
boolean |
hasBZLinkInDescription()
Returns true if BZ link is in the PR description.
|
boolean |
hasJiraLinkInDescription()
Returns true if JIRA link is in the PR description.
|
boolean |
hasRelatedPullRequestInDescription()
Returns true if PR link is in the description
|
boolean |
isGithubMilestoneNullOrDefault() |
boolean |
isMerged() |
boolean |
isUpstreamRequired() |
void |
postGithubComment(String comment) |
void |
postGithubStatus(String targetUrl,
String status) |
void |
removeLabel(org.eclipse.egit.github.core.Label newLabel) |
void |
setMilestone(org.eclipse.egit.github.core.Milestone milestone) |
boolean |
updateStatus(Issue issue,
Enum status) |
public RedhatPullRequest(org.eclipse.egit.github.core.PullRequest pullRequest,
IssueHelper bzHelper,
IssueHelper jiraHelper,
GithubHelper ghHelper)
public boolean hasBZLinkInDescription()
public boolean hasJiraLinkInDescription()
public boolean hasBugLinkInDescription()
public List<Issue> getIssues()
public boolean hasRelatedPullRequestInDescription()
public List<RedhatPullRequest> getRelatedPullRequests()
public boolean isUpstreamRequired()
public int getNumber()
public void postGithubComment(String comment)
public org.eclipse.egit.github.core.Milestone getMilestone()
public void setMilestone(org.eclipse.egit.github.core.Milestone milestone)
public String getTargetBranchTitle()
public String getSourceBranchSha()
public org.eclipse.egit.github.core.User getGithubUser()
public List<org.eclipse.egit.github.core.Comment> getGithubComments()
public String getGithubDescription()
public Date getGithubUpdatedAt()
public org.eclipse.egit.github.core.Comment getLastMatchingGithubComment(Pattern pattern)
public String getState()
public String getHtmlUrl()
public boolean isMerged()
public BuildResult getBuildResult()
public String getOrganization()
public String getRepository()
public boolean updateStatus(Issue issue, Enum status) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean isGithubMilestoneNullOrDefault()
public List<org.eclipse.egit.github.core.Label> getGithubLabels()
public void addLabel(org.eclipse.egit.github.core.Label newLabel)
public void removeLabel(org.eclipse.egit.github.core.Label newLabel)
Copyright © 2015 JBoss by Red Hat. All rights reserved.