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.
octokit.issues.create didn't work for me. Error Cannot read property 'create' of undefined #36
Open
Description
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({
Metadata
Metadata
Assignees
Labels
No labels