A GitHub App built with Probot to automate PrestaShop project workflow
# Install dependencies
npm install
# Run the bot
npm start
If you want to use multiple node versions on your development environment, consider using NVM
nvm install 12.16.0
nvm use 12.16.0
node --version #will output v12.16.0
See Probot doc for local development and simulating github webhooks
npm run test
See Probot doc
The entry point is file index.js
.
In this file, upon receiving a webhook, the bot performs 3 steps:
- setup the app, setup javascript components
- analyze incoming github webhook to find whether this matches one of the registered Rules
let rulePromise = ruleComputer.findRule(context);
- if the analysis is successfull, apply the rule
ruleApplier.applyRule(rule, context);
The idea behind is to define a set of Rules for PrestaShop project workflow and the bot applies them.
Rules are described in src/rule.js
file.
A config file have been introduced to setup your repositories