Merge GitHub pull request using Authy OneTouch....
Requirements:
- Node js
- Sails js
Install Sails JS globally:
npm install sails
Clone this repo and run npm install:
git clone [email protected]:josh-authy/merge-pull-requests-with-authy-onetouch.git
cd merge-pull-requests-with-authy-onetouch
npm install
sails lift
Create a .env file to configure GitHub and Authy tokens, this file must not be added to git for your security.
GITHUB_OAUTH_TOKEN=XXXXYYYYYZZZ
AUTHY_USER_ID=1234567
AUTHYPRER_API_KEY=XXXXXXXXXXXXXXXXXXXX
Use ngrok to expose the port 1337, and use the url generated to add this to Authy and github webhooks.
- The path for github is https://YOURDOMAIN/pullrequestreceive
- The path for authy is https://YOURDOMAIN/pullrequestapprove
After deploy, edit enviroment vars: