GitCI-BaseAction
Base action the be used when creating you own action to GitCI
Description
This base action should be used when creating a new Action for GitCI.
Know more about GitCI visiting:
GitHub: https://github.com/jmtvms/GitCI
NPM: https://www.npmjs.com/package/gitci
Status
Branch | Build status |
---|---|
master | |
develop |
Example
This is the example of the implementation of your own action.
const util = ;const baseAction = ; var { // Call the constructor from the base action. MyCommandsuper_; // Add the events you want do allow the implementation to have. thisavailableListeners; // Add more custom code here. ...}util; // Override this function with your execute.MyCommandprototype { ... MyCommand;}; // Override this function with your validation of the command.// Must return a boolean indicating that its valid or not.MyCommandprototype { ...};