Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (26 loc) · 1.68 KB

File metadata and controls

44 lines (26 loc) · 1.68 KB

Out-of-Office Responder on GitHub Using Octokit and Webhooks

Surfing Dog

  • We will create an out of office responder when assigned issues on GitHub.
  • A workshop exercise to demonstrate how GitHub webhooks work using @octokit/webhooksand how we can make calls to GitHub using @octokit/rest

Setup

  • No need to do this prior to the workshop. We will go over each item step by step during the workshop.

  • Register an account on GitHub if you do not already have an account.

  • Connect to the Out of Office Skeleton project

Obtain a Personal Access Token (PAT)

  • Obtain a Personal Access Token by following these steps here You will need the Personal Access Token (PAT) value later.

Remix this project!

  • Follow these steps. Remember what the URL is when the glitch project is remixed.

We will come back to setting up your glitch project after we set up the webhook!

Set up webhook

  • Set up the webhook by following these steps. Remember the secret you had set for the webhook.

Go back to Glitch project and set the .env file values.

  • Click on the .env file.

    • Type in the secret you specified when setting up the webhook
    • Set the Personal Access Token (PAT) value.
    • Set the PORT value to 3000.

    envfile