public class BugAndJiraFlagBasedPullEvaluator extends BasePullEvaluator
PullEvaluator.Result| Modifier and Type | Field and Description |
|---|---|
static String |
DEVEL_ACK |
static String |
PM_ACK |
static String |
QA_ACK |
protected Set<String> |
REQUIRED_FLAGS |
static String |
REQUIRED_FLAGS_PROPERTY |
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 |
|---|
BugAndJiraFlagBasedPullEvaluator() |
| 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 REQUIRED_FLAGS_PROPERTY
public static final String PM_ACK
public static final String QA_ACK
public static final String DEVEL_ACK
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.