PR bot
===

powered by [botdylan](https://github.com/botdylan/botdylan)

## Usage

After cloning this repo,

Ensure the server is accessible from the internet; we can use `localtunnel` for this when prototyping locally

```
$ npm install -g localtunnel
$ lt --port 8000 --subdomain prbot1234
your url is: https://prbot1234.localtunnel.me # update config.json
```

Then, start the bot

```
$ npm install
$ npm start
```

## TODOs

0. Adapt checklist script to present a dynamic list based on files touched
  - Systems subtasks for config deployment if `/application/configs` touched
  - More thorough manual verifications if anything in legacy folders touched
  - Successful "cukes PR" build if `tests/cucumber` touched
0. Follow up with systems on [this ticket](http://jira.theorchard.com/browse/SYS-261) to deploy the bot (@smoll)
0. Set up jenkins job to automate deployment of code changes to the bot (@smoll)
0. Refactor the checklist script (move comment body into a separate .md file, etc.)
0. ~~Secure the webhook by using [GitHub's described approach](https://developer.github.com/webhooks/securing/)~~ Using my personal fork of botdylan with this feature in it until [my PR is merged](https://github.com/botdylan/botdylan/pull/11).
