A Github webhook, powered by Webtask.io, that will tweet every time you commit to the master branch.
- Install the Webtask CLI:
npm install -g wt-cli
. - Initialize your Webtask account:
wt init
. - Create a Twitter Application and generate an access token and access token secret.
- Find a Github repository to which you have administrative access.
git clone https://github.com/filearts/tweethook.git
cd tweethook
wt create -n tweethook \
--secret CONSUMER_KEY=<CONSUMER_KEY> \
--secret CONSUMER_SECRET=<CONSUMER_SECRET> \
--secret ACCESS_TOKEN=<ACCESS_TOKEN> \
--secret ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET> \
tweethook.js
# https://webtask.it.auth0.com/api/run/wt-your-email_com-0/tweethook?webtask_no_cache=1
- Go to your repository's Settings page and navigate to the 'Webhooks & services' section.
- Click 'Add webhook'
- Paste the Webtask URL into the 'Payload URL' input and leave the rest at their default settings.
- Confirm by clicking the 'Add webhook' button and start pushing commits to Twitter!
Presented at js-montreal 8 Dec 2015