Awesome
<p align="center"> <img width="400" src="https://user-images.githubusercontent.com/4658208/54479268-752bb580-47f1-11e9-9d01-edd8b574aa92.png"> <h3 align="center">bird-box</h3> <p align="center">Update a pinned gist to contain the latest tweets of a user</p> </p>📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
Setup
Prep work
- Create a new public GitHub Gist (https://gist.github.com/)
- Create an access token with the
gist
scope and copy it. (https://github.com/settings/tokens/new) - Create a new Twitter app (https://developer.twitter.com/en/apps/create)
- On the App page for your newly created app, generate an "Access token & access token secret" and copy all keys and tokens.
Project setup
-
Fork this repo
-
Edit the environment variables in
.github/workflows/schedule.yml
:- TWITTER_USER: The user handle of the twitter account.
- GIST_ID: The ID portion from your gist url:
https://gist.github.com/matchai/
6d5f84419863089a167387da62dd7081
.
-
Go to the repo Settings > Secrets
-
Add the following environment variables:
- GH_TOKEN: The GitHub access token generated above.
- TWITTER_CONSUMER_KEY: Your Twitter consumer API key.
- TWITTER_CONSUMER_SECRET: Your Twitter consumer secret.
- TWITTER_ACCESS_TOKEN_KEY: Your Twitter access token key.
- TWITTER_ACCESS_TOKEN_SECRET: Your Twitter access token secret.