Class ProjectContextAwareActionExecutor
java.lang.Object
com.codebarrel.automation.api.component.ProjectContextAwareActionExecutor
Small helper that can be used to execute critical parts of an action, *only* if there's an issue available
to get the applicable project from, *or* if the rule context applies to a single project.
If a rule applies to multiple contexts, it's treated as a global rule in which case no actions are executed!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecute(SmartIssueBean issue, ComponentContext context, Consumer<String> executor)
-
Constructor Details
-
ProjectContextAwareActionExecutor
public ProjectContextAwareActionExecutor()
-
-
Method Details
-
execute
public static void execute(SmartIssueBean issue, ComponentContext context, Consumer<String> executor)
-