Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit b569cda

Browse files
authored
Update Octokit API call to latest version
Error: Cannot read property 'create' of undefined using "octokit.issues.create". Based on Octokit API latest version (v18 - https://octokit.github.io/rest.js/v18?msclkid=1de4bc88ad1011ecb91b07acd993550f#issues), new way to call "octokit.rest.issues.create"
1 parent dca5273 commit b569cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

responses/14_create-js-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function run() {
108108

109109
const octokit = github.getOctokit(token);
110110

111-
const newIssue = await octokit.issues.create({
111+
const newIssue = await octokit.rest.issues.create({
112112
repo: github.context.repo.repo,
113113
owner: github.context.repo.owner,
114114
title: issueTitle,

0 commit comments

Comments
 (0)