Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
There was an error while loading. Please reload this page.
The lesson says to use this code
const github = require("@actions/github");
const octokit = new github.getOctokit(token);
const newIssue = await octokit.issues.create({
but the create seemed to always fail with this error below.
I found online someone that used this and that seemed to work for me
const newIssue = await octokit.rest.issues.create({