public interface PullEvaluator
| Modifier and Type | Interface and Description |
|---|---|
static class |
PullEvaluator.Result
Result of the evaluation process of a pull request.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends Issue> |
getIssue(RedhatPullRequest pull)
Returns the issue(-s) related to the given pull request.
|
String |
getTargetBranch()
Returns the github branch this evaluator is dedicated to.
|
List<RedhatPullRequest> |
getUpstreamPullRequest(RedhatPullRequest pull)
Returns the upstream pull request(-s) related to the given pull request.
|
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.
|
boolean |
updateIssueAsMerged(RedhatPullRequest pull)
Marks the issue related to the given pull request merged.
|
void init(PullHelper helper, Properties configuration, String version)
helper - PullHelper instanceconfiguration - configuration propertiesversion - issueFixVersion name related to this evaluator in the configuration propertiesString getTargetBranch()
PullEvaluator.Result isMergeable(RedhatPullRequest pull)
pull - a pull request to be evaluatedResult result of the evaluationList<? extends Issue> getIssue(RedhatPullRequest pull)
JiraIssue if the pull request is
tracked in Jira or a Bug if it is tracked by Bugzilla or a list of both.pull - a pull requestList<RedhatPullRequest> getUpstreamPullRequest(RedhatPullRequest pull)
pull - a pull requestboolean updateIssueAsMerged(RedhatPullRequest pull)
pull - a pull requestCopyright © 2015 JBoss by Red Hat. All rights reserved.