public class RedhatPullRequest extends Object
| Constructor and Description |
|---|
RedhatPullRequest(org.eclipse.egit.github.core.PullRequest pullRequest,
BZHelper bzHelper,
GithubHelper ghHelper) |
| Modifier and Type | Method and Description |
|---|---|
List<Bug> |
getBugs() |
BuildResult |
getBuildResult() |
List<org.eclipse.egit.github.core.Comment> |
getGithubComments() |
String |
getGithubDescription() |
Date |
getGithubUpdatedAt() |
org.eclipse.egit.github.core.User |
getGithubUser() |
String |
getHtmlUrl() |
org.eclipse.egit.github.core.Comment |
getLastMatchingGithubComment(Pattern pattern)
Searches for last github comment that contains the pattern.
|
org.eclipse.egit.github.core.Milestone |
getMilestone() |
int |
getNumber() |
String |
getOrganization() |
List<RedhatPullRequest> |
getRelatedPullRequests() |
String |
getRepository() |
String |
getSourceBranchSha() |
String |
getState() |
String |
getTargetBranchTitle() |
boolean |
isJiraInDescription() |
boolean |
isMerged() |
boolean |
isUpstreamRequired() |
void |
postGithubComment(String comment) |
void |
postGithubStatus(String targetUrl,
String status) |
void |
setMilestone(org.eclipse.egit.github.core.Milestone milestone) |
boolean |
updateBugzillaStatus(Bug bug,
Bug.Status status) |
public RedhatPullRequest(org.eclipse.egit.github.core.PullRequest pullRequest,
BZHelper bzHelper,
GithubHelper ghHelper)
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)
pattern - - REGEX pattern to match against comment body.public List<RedhatPullRequest> getRelatedPullRequests()
public String getState()
public String getHtmlUrl()
public boolean isMerged()
public boolean isJiraInDescription()
public boolean isUpstreamRequired()
public BuildResult getBuildResult()
public String getOrganization()
public String getRepository()
public boolean updateBugzillaStatus(Bug bug, Bug.Status status)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.