Automatically add a checklist (sourced from .github/listbot.md) to every Pull Request which is opened. As the checklist is updated the bot will change the build status depending on whether the checklist is completed.
- Generate a personal access token from Github
- It must have
repoandrepo:statusfor scopes - Note: Lists will appear as comments by the user who generates this token.
- You may want to create a "bot user" and use the token from that account.
- Signup for Torus if you haven't already
- Run
torus linkin your checkout of the code - Create an environment for Heroku
torus envs create heroku - Create a machine role for your deployment
torus machines roles create heroku - Give your machine role read only access
torus allow rl /$org/$project/heroku/default/*/*/* heroku - Create a new machine for your deployment with
torus machines create heroku-instance -r heroku - Store the token as
GITHUB_TOKENusingtorus set -e heroku GITHUB_TOKEN [token]
- Click the Heroku deploy button
- Add values for
TORUS_TOKEN_ID,TORUS_TOKEN_SECRET,TORUS_PROJECT,TORUS_ORGfrom step 2. - Add a new file to your repository at
.github/listbot.md - Add a new webhook at
https://github.com/[owner]/[repo]/settings/hooks/new
- Set the payload url to
[hostname]/webhookwhere[hostname]is the deployed service - Select
Issue comment,Pull requestandPushfrom "Let me select individual events" - Mark it as active and save

