Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Creating Your Own Pinned Gist Bot

Creating Your Own Pinned Gist Bot

How to create your own pinned gist bot - given at the MidlandsJS Meetup.
If you'd like me to give this talk as a talk or a workshop - email me at [email protected]

Josh Ghent

January 23, 2021
Tweet

More Decks by Josh Ghent

Other Decks in Programming

Transcript

  1. Creating Your Own Pinned Gist Bot with GitHub Actions Josh

    Ghent https://bit.ly/pinned-gist-leicsjs
  2. Idea! • Find an API ◦ Good Docs ◦ Static

    Token (because OAuth2 is a pain) • Ideally an API you used or data you’re interested in ◦ Fitbit ◦ Pocket ◦ GoodReads ◦ Todoist
  3. Lay the Foundations • Clone https://github.com/joshghent/rescue-box as a framework •

    Create a new repo - github.com/myuser/api-box • Push the framework to the new the new repo • Create a blank gist and add the ID to the secrets as GIST_ID • Create a new Github token with `gist` scope and add it to the repo secrets as GH_TOKEN
  4. Get the Data • Research the API response for the

    data you want • Get your API token! • Update the code to contain the stats you want
  5. ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐

    ⭐ Woo! You just made an automated action! https://bit.ly/pinned-gist-leicsjs