public class PullHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
BUILD_OUTCOME |
static Pattern |
FINISHED |
static Pattern |
FORCE_MERGE |
static Pattern |
MERGE |
static Pattern |
PENDING |
static Pattern |
RUNNING |
| Constructor and Description |
|---|
PullHelper(String configurationFileProperty,
String configurationFileDefault) |
| Modifier and Type | Method and Description |
|---|---|
ProcessorPullState |
checkPullRequestState(RedhatPullRequest pullRequest)
Checks the state of the given pull request from the pull-processor perspective.
|
org.eclipse.egit.github.core.Milestone |
createMilestone(String title) |
PullEvaluatorFacade |
getEvaluatorFacade() |
List<org.eclipse.egit.github.core.Milestone> |
getGithubMilestones() |
List<RedhatPullRequest> |
getOpenPullRequests() |
Properties |
getProperties() |
RedhatPullRequest |
getPullRequest(String organization,
String repository,
int id) |
boolean |
isAdminUser(String username) |
public static final Pattern BUILD_OUTCOME
public static final Pattern PENDING
public static final Pattern RUNNING
public static final Pattern FINISHED
public static final Pattern MERGE
public static final Pattern FORCE_MERGE
public Properties getProperties()
public PullEvaluatorFacade getEvaluatorFacade()
public List<RedhatPullRequest> getOpenPullRequests()
public RedhatPullRequest getPullRequest(String organization, String repository, int id)
public List<org.eclipse.egit.github.core.Milestone> getGithubMilestones()
public org.eclipse.egit.github.core.Milestone createMilestone(String title)
public ProcessorPullState checkPullRequestState(RedhatPullRequest pullRequest)
pullRequest - the pull requestpublic boolean isAdminUser(String username)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.