From b569cdad04d2180cc6969f2a6d2cb41a24851671 Mon Sep 17 00:00:00 2001 From: Omar Aviles Date: Sat, 26 Mar 2022 08:31:27 -0600 Subject: [PATCH] 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" --- responses/14_create-js-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/14_create-js-files.md b/responses/14_create-js-files.md index c5076bc..ce702e9 100644 --- a/responses/14_create-js-files.md +++ b/responses/14_create-js-files.md @@ -108,7 +108,7 @@ async function run() { const octokit = github.getOctokit(token); - const newIssue = await octokit.issues.create({ + const newIssue = await octokit.rest.issues.create({ repo: github.context.repo.repo, owner: github.context.repo.owner, title: issueTitle, pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy