Skip to content
πŸ¦πŸ’¬ Update a gist to contain your latest tweet
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Mar 15, 2019


Update a pinned gist to contain the latest tweets of a user

πŸ“Œβœ¨ For more pinned-gist projects like this one, check out:


Prep work

  1. Create a new public GitHub Gist (
  2. Create an access token with the gist scope and copy it. (
  3. Create a new Twitter app (
  4. On the App page for your newly created app, generate an "Access token & access token secret" and copy all keys and tokens.

Project setup

  1. Fork this repo

  2. Edit the environment variables in .github/main.workflow:

    • TWITTER_USER: The user handle of the twitter account.
    • GIST_ID: The ID portion from your gist url:
  3. Go to the repo Settings > Secrets

  4. 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.
You can’t perform that action at this time.