Skip to content

Instantly share code, notes, and snippets.

@jitran
Last active March 27, 2024 01:25
Show Gist options
  • Save jitran/c44b0bcf4d0af11def698ae3d8344341 to your computer and use it in GitHub Desktop.
Save jitran/c44b0bcf4d0af11def698ae3d8344341 to your computer and use it in GitHub Desktop.
Octokit with Codespaces debug and run exercise

Octokit with Codespaces debug and run exercise

  1. Go to https://github.com/robandpdx/octokit-js-demo > Code > Create codespace..

  2. Give it a few minutes to set up.

  3. Rename env.orig to .env and populate with your PAT and org name.

  4. Add breakpoints in script.js.

  5. From the VSCode left menu > Run and Debug > JavaScript Debug Terminal.

  6. From the terminal, run:

unset GITHUB_TOKEN

npm install
node.script.js
  1. Step through the breakpoints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment