- NodeJS >= 7.7.0
- NPM >= 4.0.0
- Twitter account with admin access
- Github repo with admin access
$ git clone https://github.com/M-ZubairAhmed/tweet-issues.git
$ cd tweet-issues
$ npm install
$ mv .env.example .env
- Create a github app
- Enter
APP_ID
,WEBHOOK_SECRET
in.env
- Optionally a subdomain can also entered
- Install in the github repository of choice
- Create a twitter app on the chosen twitter account
- Grant
Read/Write
access - Enter
consumer_key
,consumer_secret
,access_token
,access_token_secret
in.env
$ npm start
You should have a local running app.
To be able to use this bot with your account, you would need to deploy it in cloud. We recommend Zeit. Its a great service for running Probot apps. After creating the GitHub App:
$ npm i -g now
$ git clone https://github.com/M-ZubairAhmed/tweet-issues.git
- Replace the
APP_ID
andWEBHOOK_SECRET
with the values for those variables, and - Set the path for the PRIVATE_KEY:
$ now -e APP_ID=aaa \
-e WEBHOOK_SECRET=bbb \
-e PRIVATE_KEY="$(cat ~/Downloads/*.private-key.pem)"
- Go back to your app settings page and update the
Webhook URL
to the URL of your deployment
Your app should be up and running.
- Issues - access Read-only permissions
- Issues - subscribe events
- Read and Write