Respond to Github
PR
s with a gif based on number of additions vs deletions.
A webtask that can be used as a Github
webhook to reply to PR
s with an animated gif just to add some fun to them.
Check the closed PR
s for an example of this webhook
's responses.
- Install the webtask cli:
npm install -g wt-cli
- Create a webtask profile:
wt init
- Create a Github API token with
repo
access from: https://github.com/settings/tokens/new - Generate the webhook url, substituting <YOUR_TOKEN> with the one from step #3:
wt create --name gif_responder --secret GITHUB_TOKEN=<YOUR_TOKEN> --prod https://github.com/esttorhe/gif_responder/blob/master/gif_responder.js
- Install the webhook with the default settings on your repo by subsituting and , at:
https://github.com/<USERNAME>/<REPO>/settings/hooks/new
- Optionally inspect any errors using the cli:
wt logs
Notes:
@webtask_option pb 1
: This webtask requires that the body automatically be parsed@webtask_secret
:GITHUB_TOKEN
- A Github access token
This project is greatly inspired by the Github Tag Hook
Esteban Torres