Skip to content

Respond to `Github` `PR`s with a gif based on number of additions vs deletions.

License

Notifications You must be signed in to change notification settings

esttorhe/gif_responder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gif_responder

Respond to Github PRs with a gif based on number of additions vs deletions. A webtask that can be used as a Github webhook to reply to PRs with an animated gif just to add some fun to them.

Check the closed PRs for an example of this webhook's responses.

Installation instructions:

  1. Install the webtask cli: npm install -g wt-cli
  2. Create a webtask profile: wt init
  3. Create a Github API token with repo access from: https://github.com/settings/tokens/new
  4. 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
  5. Install the webhook with the default settings on your repo by subsituting and , at: https://github.com/<USERNAME>/<REPO>/settings/hooks/new
  6. 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

Inspiration:

This project is greatly inspired by the Github Tag Hook

Author:

Esteban Torres

About

Respond to `Github` `PR`s with a gif based on number of additions vs deletions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published