public class ParentBugBasedPullEvaluator extends BasePullEvaluator
PullEvaluator.Result| Modifier and Type | Field and Description |
|---|---|
static String |
PARENT_BUGS_PROPERTY |
protected Set<Integer> |
REQUIRED_PARENTS |
EVALUATOR_PROPERTY, GITHUB_BRANCH_PROPERTY, GITHUB_BRANCH_UPSTREAM, GITHUB_ORGANIZAITON_UPSTREAM, GITHUB_REPOSITORY_UPSTREAM, githubBranch, helper, ISSUE_FIX_VERSION, issueFixVersion, upstreamBranch, upstreamOrganization, upstreamRepository| Constructor and Description |
|---|
ParentBugBasedPullEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(PullHelper helper,
Properties configuration,
String version)
Initializes the evaluator.
|
PullEvaluator.Result |
isMergeable(RedhatPullRequest pull)
Evaluates if the given pull request is mergeable according to the rules of the relevant EAP issueFixVersion.
|
protected PullEvaluator.Result |
isMergeableByBugzilla(RedhatPullRequest pull) |
getBugsThatMatchFixVersion, getIssue, getJiraIssue, getTargetBranch, getUpstreamPullRequest, isMergeableByUpstream, updateIssueAsMergedpublic static final String PARENT_BUGS_PROPERTY
public void init(PullHelper helper, Properties configuration, String version)
PullEvaluatorinit in interface PullEvaluatorinit in class BasePullEvaluatorhelper - PullHelper instanceconfiguration - configuration propertiesversion - issueFixVersion name related to this evaluator in the configuration propertiespublic PullEvaluator.Result isMergeable(RedhatPullRequest pull)
PullEvaluatorisMergeable in interface PullEvaluatorisMergeable in class BasePullEvaluatorpull - a pull request to be evaluatedResult result of the evaluationprotected PullEvaluator.Result isMergeableByBugzilla(RedhatPullRequest pull)
Copyright © 2015 JBoss by Red Hat. All rights reserved.