You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
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 text was updated successfully, but these errors were encountered:
I had this issue too. v5.0.0 of @actions/github seems to have added .rest to the method call. (presumably this is due to a change in octokit/rest.js, but I didn't look that up)
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 text was updated successfully, but these errors were encountered: