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({
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({