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(org.eclipse.egit.github.core.PullRequest pull)
Returns the issue(-s) related to the given pull request.
|
String |
getTargetBranch()
Returns the github branch this evaluator is dedicated to.
|
List<org.eclipse.egit.github.core.PullRequest> |
getUpstreamPullRequest(org.eclipse.egit.github.core.PullRequest 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(org.eclipse.egit.github.core.PullRequest pull)
Evaluates if the given pull request is mergeable according to
the rules of the relevant EAP issueFixVersion.
|
boolean |
updateIssueAsMerged(org.eclipse.egit.github.core.PullRequest 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(org.eclipse.egit.github.core.PullRequest pull)
pull - a pull request to be evaluatedResult result of the evaluationList<? extends Issue> getIssue(org.eclipse.egit.github.core.PullRequest 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<org.eclipse.egit.github.core.PullRequest> getUpstreamPullRequest(org.eclipse.egit.github.core.PullRequest pull)
pull - a pull requestboolean updateIssueAsMerged(org.eclipse.egit.github.core.PullRequest pull)
pull - a pull requestCopyright © 2014 JBoss by Red Hat. All Rights Reserved.